If you want to install xampp in your pc, then you have to change something in your pc. First download xampp software.
Now go to control panel and click on System and Security.
Then click on Change User Account Control settings.
Now pull the blue button bellow and click OK.
If you use anti-virus on your pc, then deactivate that for 20 minutes. Now install xampp software in c drive. Wait until installation finish. After installation reactivate your antivirus and undo the work from control panel what you did first. After installation of xampp, you can check your php version. For checking,first you have to start apache and mysql from xampp control panel.
Now open an internet browser and type localhost/dashboard and press enter. Then you can see your php version. Most of the freelancers use xampp software for web application development. It’s easy to use and compatible with pc.