If you want to run PHP on your local device, first of all install one of web servers with PHP from google play:
- Ulti Server: PHP, MySQL, PMA (Tested)
- KSWEB: server + PHP + MySQL
- PAW Server for Android
- Bit Web Server (PHP,MySQL,PMA)
- Palapa Web Server
Then inside settings of picked web server set root folder as root folder of your local project.
Then in AWD go to Project settings and set root url = 127.0.0.1:[port] (e.g. 127.0.0.1:8082 for Ulti Server with default port number).
The same for remote web server, just setup URL and you can execute PHP code.
That’s it. Just open file, and press View In Browser.
PS: Do not forget to save file before run it, to see the changes!