I maintain a mountain of PHP. What attracts me to JavaScript is its syntax:
PHP:
$fruit = array('apple', 'banana', 'orange');
$fruit_colors = array(
'apple' => 'red',
'banana' => 'yellow',
'orange' => 'orange'
);
JavaScript: var fruits = [ 'apple', 'banana', 'orange' ],
fruit_colors = {
apple: 'red',
banana: 'yellow',
oranage: 'orange'
};
That's like 20,000 fewer keystrokes and much easier to read. My favorite new feature in PHP is the short array syntax.Even those less minimalistic than me, I think the draw to Node is the language, the consistency of having the same language front and back.
Much ado is made about which one is faster. But I would say roughly 99% of web apps are CRUD apps, with a few users per hour, and the bottleneck would be the database anyway.
For me what PHP has going for it is my familiarity with it. Plus, despite all the nitpicking articles, it is rock solid, especially compared to Node. And compared to Node, PHP is a hyper-organized library of everything you need, just an arm-length away.