Open your terminal and run following commands:
1) brew update 2) brew install homebrew/php/php70 3) sudo apachectl stop 4) sudo apachectl stop 5) export PATH="$(brew --prefix homebrew/php/php70)/bin:$PATH" 6) php -versionOpen your terminal and run following commands:
1) brew update 2) brew install homebrew/php/php70 3) sudo apachectl stop 4) sudo apachectl stop 5) export PATH="$(brew --prefix homebrew/php/php70)/bin:$PATH" 6) php -version