Only simple configuration is required for operation.
First configure the php environment variables
After the configuration is completed, open sublime
Click on the new build system
{ "cmd": ["php", "$file"], "file_regex": "php$", "selector": "source.php" }
After saving, you will find that there will be one more php. Mine has been configured.
Open the php file and use the shortcut key ctrl+B to run the code
The above introduces how sublime can directly run PHP code, including aspects of it. I hope it will be helpful to friends who are interested in PHP tutorials.