All you need is Termux and data connection for first use.
I can't copy the post from that site but I have the link visit newstractor dot com dot ng/how-to-run-php-server-on-android-phone-or-iphone-using-termux
To install from source, you may have to use ./configure make make install each in case the server is a unix server
The principle of WAMP/LAMP server is that MySQL, Apache and PHP are staked in a neat package easy to install. However, it is easy to install only the components you need separately.
You can install an entire web server on your flash drive with XAMPP Portable. http://portableapps.com/apps/development/xampp You will need an entire server (at least Apache and PHP) if you want to execute PHP scripts.
Just install wamp or xampp server for windows. They are both windows based web server. Other then that there is a module for php on IIS to download but I would recommend not going for that hassle
Once you install wamp server. Any file with php extenstion like xyz.php you put in www folder will be executed as PHP file.
You need to install PHP either on a pre built apache server such as xampp or download PHP directly from the website.
It supports websites made on php but not coding in php. There are workarounds for coding in PHP using Android.
One of the Windows Server operating systems. PHP can be installed with Microsoft's IIS web server as an ISAPI filter, or you can install the WAMP server under Windows that contains the Apache web server, the PHP interpreter, and mySQL. There are others as well, such as the Xitami web server, etc., that work equally well with PHP under windows.
I have provided you with a two links that will take you through how to install PHP on your computer and how to setup a server so you can run your PHP code. See the relevant link below
Visit the downloads section of the PHP website (see the related links), and find the PHP 5.2 download for your operating system. Install the package accordingly -- which is an entirely customized step, depending on your operating system.
There isn't a server available like WAMP, LAMP or XAMPP for Android tablets so it would be difficult to code php, probably not possible unless ofcourse someone has come up with a way round it.
Php can run on windows 7, but it does not run directly on it. PHP is a server side-language that runs on Apache. So in order to use PHP on windows 7, you need to install Apache on it. You can do this by installing WAMP server on your windows 7 machine. PHP will automatically be available to you once installed.