Wikipedia's Mediawiki software is awful, and serves as a great example of how not to build an application. It makes WordPress look like a precision engineered Swiss watch.
Yahoo uses PHP because, like Facebook, they could make FORTRAN work in production if they wanted to.
Facebook's former CTO has said that the only reason Facebook is still on PHP still today is legacy. It wouldn't be written in PHP if it were started today.
PHP once was the right tool for the job, but those years have passed. We have many better options now.
A sane engineer considers the full pictures before picking a solution rather than pick their pet languages just because it's nice and clean.
Inertia is powerful.
Though, to be honest, I don't think that using Play (today) or Rails/Django (yesterday) is sufficiently less productive to merit the technical debt you almost certainly will incur starting with a PHP stack. (And I am an ex-PHP person, to the point of hacking around in PHP core...that's a few months I'd love to have back.)