languages
JavaScript vs PHP
PHP started first, in 1995, the same year as JavaScript.
Why JavaScript lasted
- It is the only language the web runtime will not let you uninstall.
- Every attempt to replace it (Java applets, Flash, Dart-in-Chrome, Wasm-only apps) became a compile target for it instead.
Why PHP lasted
- WordPress, Wikipedia, Facebook's first decade, and a billion shared hosts.
- Cheap hosting plus a language that deploys as files is a distribution machine.
Questions
Which is older, JavaScript or PHP?
PHP started first, in 1995, the same year as JavaScript.
How long has PHP been running?
PHP has been up 31 years 101 days, since 1995-06-08.
How long has JavaScript been running?
JavaScript has been up 30 years 287 days, since 1995-12-04.
More languages comparisons
same category
Bash vs GoBash vs JavaScriptBash vs PHPBash vs PythonGo vs JavaScriptGo vs PHP
Dates are founding dates from the written entries. Play which is older, or see the oldest languages still running.