配置Phpstorm运行php代码

1.首先打开File/Settings/Languages&Frameworks
配置Phpstorm运行php代码
配置Phpstorm运行php代码
2.打开里面的PHP
配置Phpstorm运行php代码
3.打开右侧的CLI Interpreter的省略号
配置Phpstorm运行php代码
4.点击左上角的加号选择下面的Local Path to Interpreter,然后选择PHP
配置Phpstorm运行php代码
5.最后选择PHP executable
配置Phpstorm运行php代码
然后在你的电脑中找到php.exe,选择后完成
配置Phpstorm运行php代码
6.配置成功,可以运行php代码了
配置Phpstorm运行php代码
写完代码后点击右上角的浏览器运行即可:
配置Phpstorm运行php代码