Open Zsh configuration file:
nano ~/.zshrcScroll to the bottom and paste these exact lines:
# PHP 8.4 Permanent Path for Intel Mac
export PATH="/usr/local/opt/php@8.4/bin:$PATH"
export PATH="/usr/local/opt/php@8.4/sbin:$PATH"
Apply the changes:
source ~/.zshrcVerify the PHP version:
php -vIt works perfectly on macOS Tahoe 26.2.