PHPBrew
Brew & manage PHP versions in pure PHP at HOME
... 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.