Poor PHP. It just keeps getting dumped on.
And yes, this means, that whatever you invest in, be ready to abandon it and move forward, preferrably sooner rather than later. After all, langauges are nothing but tools. Don't take them personally.
Considering the alternatives PHP is not bad at all. It's not like Python or Ruby are some pinnacle of language design.
It's main BS is a polluted default namespace, incosistent function naming, and a few semantic inconsistencies. It's not like any other language doesn't have its share of BS.
Plus what it lacks (a proper AST etc) it's getting. It has been improving ever since 5.0, and fast. Including getting a vast speed increase with 7 that will leave Python and co in the dust.