I think the key problem is more that PHP is easy for developers to pick up and there is a lot of misinformation, in particular very outdated PHP 'tutorials' out there that have the whole idea quite backwards.
As it's often the first web development language picked up by people, who may not necessarily know what they're doing, it gets a bad reputation. Used correctly, however, it can be just as powerful as any other web development language.