PHP is actually really great when used how it was originally intended: for mostly static HTML with some dynamically generated portions added; primarily as a replacement for where one might otherwise use a traditional CGI program.
It gets a lot of hate for the same reason as shell does I guess: people insist on using it wayyyyyy outside of its niche, but within that niche it excels at it and it doesn't get enough recognition for that.
@nytpu this should not be an argument for PHP, it should be an argument for bringing back traditional CGI or some kind of modern equivalent