Skip to main content
Mac OSBrew

All About Switching PHP Versions on Mac

By December 22, 2021February 4th, 2022No Comments

How to switch off php 8.1 on mac installed through brew?

Sometimes it is necessary to manually turn off a PHP version. sphp alone does not do the job. Here’s how to do it.

brew unlink php@8.1

Switching the versions when we have a different homebrew PHP tap!

brew link --overwrite --force shivammathur/php/php@8.0