I'm currently trying to get PHP 7.1 on my mac. I followed this guide and successfully installed and linked php71 https://developerjack.com/blog/2016/08/26/Installing-PHP71-with-homebrew/
However, when running php -v from the terminal (after restarting computer, after running source bashprofile etc.), I still get PHP 5.6.30 (cli). Is there a way to get the terminal to use brews install instead of the version that comes with mac?