Several programming languages have been used for web applications, but the most popular and extensively used languages are PHP and ASP.Net. It is quite difficult to judge both the programming languages.
Below is the comparison of PHP and ASP.NET on the basis of performance, cost, scalability, support.
Performance: ASP.net is usually written in C#. C# is a faster programming language than PHP. This may change as each programming language will come up with upgrades to fight for a better speed.
Cost: PHP, MySQL server, Apache server, and Linux OS are all free and upgrades are also free.
ASP.net and IIS are free if you purchase Windows OS. There is a substantial licensing cost for a Microsoft Windows Server, Microsoft SQL Server and future upgrades.
Scalability: Normally, scalability has nothing to do with whether you select PHP or ASP.NET platform. Scalability depends on various factors such as programmer’s experience, using the best programming practice, using the best framework, following programming standards and guidelines.
Support: There are more support resources and developers available for PHP and LAMP Platforms around the world who continuously make improvements and updates and provide support for the platform.
ASP.net relies on an available number of developers at Microsoft for making improvements and updates. With ASP.NET, there are enough support contributors available to solve ASP.net challenges.
So both the platforms have their own advantages. You can choose the one which suites your scenario the best.