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

Antonella's avatar

update php 7.3 to version 7.4 with mac

I just updated my PHP version with the following commands:

brew update
brew upgrade php

if I issue the command

php -v:

PHP 7.3.11 (cli) (built: Jun  5 2020 23:50:40) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.3.11, Copyright (c) 1998-2018 Zend Technologies

while if I launch the command:

	brew upgrade php:

	Warning: php 7.4.12 already installed

how can i do to update?

0 likes
5 replies
Antonella's avatar

with: brew link php

I see that I use version 7.4:

PHP 7.4.12 (cli) (built: Oct 29 2020 18:37:21) ( NTS ) Copyright (c) The PHP Group Zend Engine v3.4.0, Copyright (c) Zend Technologies with Zend OPcache v7.4.12, Copyright (c), by Zend Technologies

while if I do

brew search php

==> Formulae
brew-php-switcher   php-cs-fixer        phplint             phpstan
php ✔               [email protected]             phpmd               phpunit
php-code-sniffer    [email protected] ✔           phpmyadmin
==> Casks
homebrew/cask/eclipse-php                homebrew/cask/netbeans-php

I can't find version 7.4

how can i solve?

GeordieJackson's avatar
Level 18

Ah, I've misunderstood what you're after.

PHP7.4 will be listed under php as it's the latest version. It doesn't show up as [email protected]

Please or to participate in this conversation.