Although there are many answers to this question, I did not solve it.
I will write in detail the steps that are easier to understand and manipulate
The first step is to configure the PHP environment variable
An example
1. Find My Computer-Properties
2. Advanced system settings
3. Environment variables
4. Locate the path in the "System variables" click Edit
5. Change to the corresponding PHP location next is ok OK
The second step is to verify that the installation is successful
Windows+r
Input cmd into
Input Php-v
Show two successes
Step three, set sublime
Locate the Tools-build system-new build system, and in the open page, enter the following code
{ "cmd": ["PHP", "$file"], "File_regex": "php$", "selector": "Source.php"}
Save it in the default directory,
Modify the file name to Php.sublime-build
And then write a simple PHP
Ctrl+b can be run straight out.
The three show