Brew установить PHP с определенной версией
Then choose your version.
brew install php@7.1
Link the PHP version.
brew link --force --overwrite php@7.1
Lokesh003
Then choose your version.
brew install php@7.1
Link the PHP version.
brew link --force --overwrite php@7.1
brew -v