Switch between php7.4 and php 8.2 on macos


Dec 25, 2022 mac os


PHP 7.4

brew install shivammathur/php/php@7.4
 brew unlink php@7.4 && brew link --overwrite --force php@7.4

PHP 8.2

brew install shivammathur/php/php@8.2
 brew unlink php@8.2 && brew link --overwrite --force php@8.2


mac os
short