Brew PHP Switcher
Brew PHP switcher is a simple shell script to switch versions of PHP
... command. For users of OSX only who have installed PHP via Homebrew and for PHP version 5.6, 7.0, 7.1, 7.2, 7.3, 7.4 and 8.0 only. Your Apache config must have native osx PHP module commented out.