Earlier quoted context omitted.
> Lexical scoping Yes. > Coroutines No. > Generators Yes. > Decorators No. > Generic type containers In progress. But also PHP has dynamic/weak typing and static/strong typing so this isn't strictly necessary. > A functional API (e.g. something like Java 8 streams) Available as a 3rd party library. > An extensive selection of data structures (collections) included in the standard lib https://www.php.net/manual/en/boo…
Thanks for the thoughtful response. But based on your answers, PHP does lag significantly behind other modern languages. FYI the SPL you linked is quite meager compared to languages like Python and Java. My opinion remains unchanged. Using PHP in 2019 only puts you at a disadvantage when compared to the alternatives.
Coroutines are not necessary in PHP. In fact, the share nothing architecture of the LAMP stack is one of it's advantages if that suits your needs.
The setup of a Java web stack alone is painful enough to make PHP a viable option in comparison.