DEV Community

Discussion on: Do Developers Still Use PHP (and why thatā€™s the wrong question to ask)

 
bdelespierre profile image
Benjamin Delespierre

šŸ¤¦ā€ā™‚ļø Iā€™m obviously talking about the platform, not the language itself. PHP platform is standalone. JavaScript platform needs a hosting program. This program can be anything: a database (mongo), a browser (the DOM), a generic C runtime (Node), a game engine (Unreal). Even PHP can run JS

Thread Thread
 
stojakovic99 profile image
Nikola Stojaković • Edited

And platform is an environment where language is ran. I'm talking about that already.

PHP needs Zend VM, or any other implementation of the language.
JavaScript needs V8 or any other engine capable of running JavaScript. It doesn't need browser, it doesn't need DOM.
There is no difference there.

GraalVM can run multiple languages at once.
graalvm.org/

It's about implementation, not a language.

Some comments have been hidden by the post's author - find out more