/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew install php
- 安装目录
/usr/local/Cellar/php/7.3.3
- 查看php 版本
/usr/local/Cellar/php/7.3.3/bin/php -v
<!DOCTYPE html>
<html>
<body>
<?php
echo "Hello World!";
?>
</body>
</html>