First download PHP latest version with Xampp for local server operation. The version of downloads suits like Operating System it's like 32 bit or 64 bit. Here the tutorial about, how we are going to run our first PHP file in Windows operating system with the help of Xammp. Both PHP and Xampp are Open source version, you can easily download from the internet.

How to install XAMPP on Windows 10
- Download XAMPP from Apache Friends.

- Double-click the file to run the installer.
- Click OK on the warning to continue.
Click Next.
XAMPP offers a variety of components that you can install, such as MySQL, phpMyAdmin, PHP, Apache, and more. For the most part, you will be using most of these components, it’s recommended to leave the default options and click Next.
Uncheck the Learn more about Bitnami for XAMPP and click Next.
Leave the default install location settings or choose another folder to install the software, and click Next to begin the installation.
During the installation, Windows will prompt you to allow certain services to communicate through the firewall. Click Allow access through the firewall for private.
Click Finish to complete the installation and to start using XAMPP Control Panel.
After installation opens the Xampp the server and makes run the Apache and Mysql click the start button. Then open the browser type localhost/dashboard. There display the information about xampp.
If it does not appear there is a problem in port configuration. Xampp Port No is 8080. Because same port number already installed like Skype, IIS, Tomcat on your computer.
If you want to solve the configuration issue just go to xampp server on Apache.
1. One the XAMPP Control Panel clicks the config button on Apache, and click Apache (httpd.conf).
2. Scroll down and find the line: Listen 80.
4. Save and close the httpd.conf file.
5. Click the Start button to run the Apache server.
Now you will move to the browser and type the localhost/dashboard. This time information of xampp dashboard must be displayed. Then choose the phpmyadmin. After that mysqlserver database page opened there. Now installation completed successfully.
Next How to create and simple PHP file:
1. First, open the Xampp Server
Ø Then Start both Apache and Mysql
2. Open the Xampp installed the location
Ø One folder is there. The folder name is htdocs
Ø Open the folder and Create a new folder inside it.
Ø Name of the folder is as is your wish
3. Then open the Notepad. It’s text Editor’s Tool.
4. Simple PHP Code:
<?PHP
echo “Welcome To New World PHP”;
?>
5. Then Save a file inside of your folder and store file.php.
Ø The extension PHP file is .php
Ø you must create like this only, but the file name is as your wish
6. After that move to the browser and type localhost/your folder name/your file name
7. Now it’s will display the message of Welcome To New World PHP.