Use multiple PHP versions on macOs
First you need to install whatever PHP version you need for a project:
brew tap shivammathur/php brew install shivammathur/php/[email protected] brew link [email protected]
Then, you can switch between different PHP versions:
brew unlink [email protected] brew link [email protected]