Ver version actual
php -v
Instalar version 8.3
https://php.watch/articles/php-8.3-install-upgrade-on-macos-homebrew
# Add the PHP and PHP Extension taps
brew tap shivammathur/php
brew tap shivammathur/extensions
# Install PHP 8.3
brew install shivammathur/php/php@8.3
# Link PHP 8.3 CLI executable as `php`
brew link --overwrite --force shivammathur/php/php@8.3
# Test installation
php -vCambiar la version en php con brew
https://stackoverflow.com/questions/34909101/how-can-i-easily-switch-between-php-versions-on-mac-osx
brew unlink php@7.4
brew link php@7.3brew unlink php@7.4
brew install php@7.3
brew link php@7.3brew install brew-php-switcher
then brew-php-switcher version
for example brew-php-switcher 7.4