2 ms·
Note: I said PHP 5.0 for a reason. I wouldn't consider PHP 5.4 particularly worse than JavaScript. It has namespaces, a somewhat decent module system (at least
by skrebbel 14y ago
Note: I said PHP 5.0 for a reason. I wouldn't consider PHP 5.4 particularly worse than JavaScript. It has namespaces, a somewhat decent module system (at least compared to JS), closures, and an inconsistent standard library. With JS having virtually no standard library at all, I'm not convinced that PHP's is necessarily worse.
Ecosystem-wise, I guess PHP's is a bit larger, and JS's is a bit smarter, currently. The amount of absolutely horrible JQuery plugins is already paralleling the amount of horrible Joomla extensions; I'm curious to see whether the NodeJS'ers can keep that culture from creeping into their side of the wall.
All in all, pretty comparable.