How to pick a username for a dating website
Mavericks has 5.4.17, Yosemite has 5.5.9 and El Capitan has 5.5.29, but with PHP 7.0 out that is often not good enough. Homebrew is a powerful package manager for OS X, which can help you install PHP and various extensions easily.
Homebrew PHP is a repository that contains PHP-related “formulae” for Homebrew, and will let you install PHP. Alternatively you can use brew-php-switcher which will switch automatically for you.
The Mac Ports Project is an open-source community initiative to design an easy-to-use system for compiling, installing, and upgrading either command-line, X11 or Aqua based open-source software on the OS X operating system.
Mac Ports supports pre-compiled binaries, so you don’t need to recompile every dependencies from the source tarball files, it saves your life if you don’t have any package installed on your system.
At this point, you can install phpbrew is a tool for installing and managing multiple PHP versions.