How to switch PHP versions on Mac with Homebrew#

Use Brew#

Switch to PHP 5.6#

brew unlink php70

brew link php56

Switch to PHP 7.0#

brew unlink php56

brew link php70
Source#

How to switch PHP verisions