Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Edwinchan01's avatar

Homebrew did not update my PHP version

I use brew install 'php 7' it mentioned installed successfully but when i type 'php -v' in my terminal its still in php version 5.3.

0 likes
2 replies
mcstepp's avatar

Update your CLI path to use PHP7.

Copy/Paste this line into your ~/.bash_profile (or your terminal's flavored file):

export PATH="$(brew --prefix homebrew/php/php70)/bin:$PATH"

2 likes

Please or to participate in this conversation.