You mean XAMPP or IIS? Depends on the development at hand.
These are questions you should ask yourself when choosing a web server.
Is the site you're making for development purposes? Localhost? Use XAMPP (Apache).
Is the site you're making for production? Use IIS or nginx.
Are you in a windows environment? Use IIS.
Are you in a Linux---------- environment? Use nginx.
Was your website developed in ASP.NET? Use IIS.
Was your website developed in Node.js? Use nginx.
Was your website developed in PHP? Either is fine.
There are certainly more questions you can ask yourself, in order to figure out whats the best approach to take to ensure your site is running as smooth as possible.