One of the challenges with building solutions on WordPress is working with the various environments each host provides.
That is, some are still running very old versions of PHP; others are running newer versions, but even then there are variations among them.
Case in point: I’ve been running PHP 7.2 on my local machine for development for some time; however, I’m currently on a project where a few of the dependencies on the continuous integration tool offers support only for PHP 7.1.
And because I like my development environment to mirror the staging and production environments, I think it’s important to make sure there’s parity.
If you’re using a package manager, it’s pretty easy to get going with multiple of versions of PHP with Homebrew, but you may run into a couple of snags as it relates to running it alongside Valet.

