DEV Community

Discussion on: PHP vs Javascript - What should you choose?

Collapse
 
andreidascalu profile image
Andrei Dascalu
  1. The way you wrote, you focused on client side JS, but if you want to compare from a dev perspective then node is worth mentioning.
  2. Php server setup may be easy (at least for a dev environment) but it's there. The vast majority of platforms don't need any setup to spin up an api.
  3. Php may not be asynchronous out of the box, but there are extensions that fix that. Let's not forget that technically dB support also comes from extensions, though stuff like mysql is enabled by default. You have swoole that provides actual concurrency (not just async) and roadrunner that provides a high performance multithreading environment.