PHP code runs on the server-side. So, In order to install PHP, you need to install AMP(Apache, MySQL, PHP) software stack. There are many AMP options for all operating systems.
  • For windows WAMP or XAMPP
  • For Linux LAMP or XAMPP
  • For mac MAMP or XAMPP
  • For salaries SAMP
  • For FreeBSD FAMP
XAMPP includes additional features components such as OpenSSL, Webalizer, FileZilla, etc.

Download XAMPP server
Download WAMP server
Download LAMP server
Download MAMP server
Installing XAMPP server on windows
Follow the following steps and install the XAMPP server on windows.
Step 1: Download the XAMPP server by clicking the above link.

Step 2:Start installation by Double click on the downloaded file and a window will pop up and click on the Next button. 
Step 3: Select the component you want to install and click on the Next button.
Step 4: Now, Select the folder where you want to install and click Next.
Step 5: Select Language and Click Next
Step 6: Click Next
Step 7: Click on the Next button and install the Xampp server
step 8: Click on the finish button.
Step 9: Start the Apache server and MySQL
Step 10: XAMPP is running Successfully.