DEV Community

loading...

Discussion on: PHP vs Node.js

Collapse
xicarus profile image
Sergiu-Lucian Petrica • Edited

Node is a runtime environment while PHP is a language, you're comparing apples to oranges. If you paid attention to the snippets you posted you would've figured this out by how many 'extras' the Node snippet contains.
If you want to compare Node to something compare it to ReactPHP or Swoole, then see how your reqs/s argument holds up.

Also, nobody who's sane is writing PHP in the view layer anymore, and it's been a very long time since this was the norm. This tells me you're not familiar with PHP development at all.

Don't take this the wrong way, but you should do your research better before writing such articles.