Switching PHP version on MacOS with brew

Written by James McDonald

April 27, 2020

Writing a web application and using the some new bells and whistles in PHP such as $var = $var ?? $othervar; only supported in 7.4

php -v
# php7.3
brew unlink php@7.3
brew install php@7.4


Submit a Comment

Your email address will not be published. Required fields are marked *

You May Also Like…