PHP 7.2 provides several critical security updates and it’s important for any PHP developer to make sure that they leave the 5.x branch and jump on the 7.x branch as soon as possible.
Updating to PHP 7.2 is a breeze If you’re on OSX and using Homebrew.
Start by making sure that brew is up to date:
brew update && brew upgrade
Unlink any previous PHP installation (this may vary, so you might need to replace the php71
accordingly):
brew unlink php71
Install PHP 7.2:
brew install php72
Once done, you can verify that PHP 7.2 was installed by using php -v
Happy coding!