The following commands can be executed to install PHP 7 on OS X using the Brew package manager.

brew tap homebrew/dupes  
brew tap homebrew/versions  
brew tap homebrew/homebrew-php  
brew install php70