Install PHP 5.6 or PHP 7 on MacOSX
You can update the PHP installation with just a one line command from your terminal. Head to this page for more info:
To update the command line to also use the new installation, open the following file via command line:
And add the following line:
Close terminal and open it up again. Now “php -v” should give you the new PHP version.