It isn't the sexiest language, but a lot of people are making a decent living working with it.
The trick is this: get familiar with a language now and just hang on tooth and nail. Someone, somewhere will still be using that language when you're close to retirement. And you can either charge them a bundle converting off of it, or an even bigger bundle supporting it.
And if it's the government, well, as long as you don't get too careless with the yachts, vacation homes and shady neighbors in banana republics, you can probably get away with it until you die. Especially if you own a politician or two.
This is actual curiosity, I just can't think of anything that PHP has that Ruby and Python don't. Even more so when it comes to Go. But you didn't mention Go.