I can\'t seem to find a way to switch versions of PHP quickly. Is there something equivalent to ruby version manager for php? I need to switch between 5.3 and 5.2 on OS X.
If you are not use php-cgi and Install different versions of PHP to different locations
Find different version libphp5.so,and copy into the different location
If use php5.3.11 or php5.4.11
ln -s php5.3.11 php || ln -s php5.4.11
Depoly your apache httpd.conf
LoadModule php5_module YOUR_PHP_PATH/php/libphp5.so
restart apache
sudo apachectl restart