It is a simple, lightweight Apache distribution, it’s extremely easy to use for developers to create a local web server for testing purposes. XAMPP is a free distribution package that makes it easy to install Apache Web Server, PHP, Perl and MySQL. Once all changes are completed you deploy once. Then you can test your code much more quickly because you don’t need to deploy it to the live server every time you make a change. To build local web server environment on Windows computer, For it you need to Install XAMPP on Windows.
Many PHP developers like to build their websites and test on localhost before publishing to live server.