I'd argue that for many modern PHP applications it's PHP that's limiting. Modern PHP libraries and best practices are mindlessly copied from Java cargo-cult-style, without any of the benefits of Java, and without any understanding why Java does things in a certain way.
If PHP programmers were truly "fearless" about taking advantage of just about any technology, they really wouldn't be using PHP most of the time.
I'm a (semi-former) PHP programmer. I've really squeezed everything out of this shitty little language I could before opening my eyes and seeing other solutions. I see this as my mistake. And especially now, seeing "Modern PHP" turn into "a crappy Java clone", I had the choice of using a crappy Java clone or just using actual Java. So I eventually chose the latter (plus others, Erlang, C++, now Rust etc.).
PHP's only remaining benefit is the cheap shared hosts. It's a huge benefit for most sites, but that's it. The language itself is crap. So is everything around it.