Right on the heels of the release of PHP 7.2.0, Colin O'Dell has posted a guide to installing it on several different operating systems.
type hints, saner count() behavior, and much more.
He then provides the commands you'll need to get your OS of choice updated (well, most of the popular ones at least):
- Ubuntu 14.04, 16.04, 17.04, & 17.10
- Debian 8 (Jessie) and 9 (Stretch)
- Debian 7 (Wheezy)
- CentOS / RHEL 6+ & Fedora 25+
- Mac OS X
Each includes the command(s) you'll need to grab the package and perform the installation. If you need something more customized or your OS isn't listed, you can always compile from source too.