uninstall brew-php-switfcher code example Example: homebrew switch php version $ brew unlink php@7.4 $ brew link php@8.0 --force --overwrite