Then choose your version. brew install php@7.1 Link the PHP version. brew link --force --overwrite php@7.1
brew -v