The main reason people dislike PHP is because of the security issues. The open-source nature of PHP results in a lot of vulnerabilities and the low barrier of entry for programmers is also a problem.
There are a lot of plugins and apps developed by inexperienced coders resulting in shoddy performance and simply bad security policy for websites that are capturing sensitive information.