PHPBrew
Brew & manage PHP versions in pure PHP at HOME
...Compile Apache php module and separate them by different versions. Build and install php(s) in your home directory, so you don't need root permission. Switch versions very easily and is integrated with bash/zsh shell. Automatic feature detection. Install & enable php extensions into current environment with ease. Install multiple php into a system-wide environment. Path detection optimization for HomeBrew and MacPorts. PHPBrew arranges configure options for you, you can simply specify variant name, and phpbrew will detect include paths and build options for configuring.