brew 安装PHP
$ brew search php
$ brew install php
查看PHP版本
liangyuji@liangyujideMBP ~ % php -v
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
位置
liangyuji@liangyujid