XAMPP is a free open source software that provides an easy way for web designers and developers to install the necessary components to run PHP based software like WordPress, Drupal, Joomla, and others on Windows 10, Mac OS X, and Linux.
In this tutorial, you’ll learn the steps to install XAMPP on your PC running Windows 10 operating system, how to construct XAMPP, and correct common issues.
Guide to install XAMPP on Windows 10
Follow this steps to download and install XAMPP on your windows 10
Step 1. Download XAMPP from Apache Friends.

you can choose different PHP version according TO your requirements
Follow this link to choose XAMPP with old PHP versions.
Step 2. Run the installer