This thread is a bit old but I'll give the procedure here, as it match to the original question.
I'll take PHP 5.4.13 for my example (currently the most recent 5.4 version)
Download binaries on php.net
Extract all files in a new folder : C:/wamp/bin/php/php5.4.13/
Copy the wampserver.conf
from another php folder (like php/php5.2.8/
) to the new folder
Rename php.ini-development
file to phpForApache.ini
Done ! Restart WampServer (>Right Mouseclick on trayicon >Exit)
note: if you are adding php version 5.6, you need to copy php5apache2_4.dll
from other php folder, too, otherwise the wamp server won't start.