You can still follow these guidelines below, however Jack Skinner has posted up an easier way to install PHP7 using homebrew here:
Note: you can also use this process to install PHP7 just as easily and avoid the gotchas at the end.
If, like me, you are keen to work with the latest PHP syntax on the latest Mac OS operating system — and especially if you are trying to keep up with the rapidly moving world of Laravel development — you will have noticed that there have been some recent changes that make this more difficult.
Most importantly, there is now a restricted mode on system files — even sudo statements will not be able to change these files, meaning that even if you can get PHP5.6+ installed, the chances of your system recognising it are considerably reduced. …