DEV Community

Discussion on: Underestimated PHP

 
pyrsmk profile image
Aurélien Delogu • Edited

I'm aware of recent ES additions. Compared to PHP 8.1 there are many things where Javascript is clearly behind PHP. But, indeed, FP in PHP is quite a pain to use.

Yes I meant Standard Library, my bad. Indeed, we can fill the gaps with third party libraries, but it points out what the language lacks of. Anyway, PHP also miss many things and with my comments I just wanted to underline that : no, PHP is quite different from what people think of it. And : yes, Javascript is not especially superior. All depends on what we're talking about.

For example, Javascript is a clear winner when it comes to async task handling.

Edit: just to add that we should not forget that PHP has static type checking