% brew link php71 Warning: php@7.1 is keg-only and must be linked with --force Note that doing so can interfere with building software. If you need to have this software first in your PATH instead consider running: echo 'export PATH="/usr/local/opt/php@7.1/bin:$PATH"' >> ~/.zshrc echo 'export PATH="/usr/local/opt/php@7.1/sbin:$PATH"' >> ~/.zshrc % php -v PHP 7.0.29 (cli) (built: Apr 12 2018 03:13: