To install PHP, we will suggest you to install AMP (Apache, MySQL, PHP) software stack. It is available for all operating systems. There are many AMP options available in the market that are given below:
If you are on Windows and don't want Perl and other features of XAMPP, you should go for WAMP. In a similar way, you may use LAMP for Linux and MAMP for Macintosh.
Download and Install WAMP ServerClick me to download WAMP server
Download and Install LAMP ServerClick me to download LAMP server
Download and Install MAMP ServerClick me to download MAMP server
Download and Install XAMPP ServerClick me to download XAMPP server