DEV Community

Discussion on: Node vs PHP

Collapse
 
ismail9k profile image
Abdelrahman Ismail

Is PHP considered as a programming language, compared to Node.js?

Collapse
 
vlasales profile image
Vlastimil Pospichal

Yes, PHP is considered as a programming language. NodeJS too.

Collapse
 
thekingofwit profile image
Brian Barrett

As far as I understand, Node isn't a programming language, JavaScript is. Node is a runtime environment that lets you execute JavaScript outside of the browser.

Thread Thread
 
andreidascalu profile image
Andrei Dascalu

Exactly. A fair comparison would be node vs roadrunner for php. Even fpm isn't really a proper comparison since it only connects prerouted requests for php scripts with the php interpreter.

The mess is that there are technically 2 php interpreters, php cli and the one tied to fpm, both configurable separately.