Earlier quoted context omitted.
Long time PHP dev here. Note: These are my personal observation and opinion. The usage you see are mostly from people already invested in PHP. However, I'm starting to see fewer new PHP devs. Some of the talented devs I know of have migrated to other "cool" languages. There are fewer PHP jobs than they use to be. I also observed less activity in PHP related subreddits. Its position as the #1 web server language has a…
> Its position as the #1 web server language has already been taken over by nodejs How so? Because when I put a PHP script on a server with " " that is a one-liner and I'm sure it'll work for the next 20 years. With nodejs, I have to implement the whole webserver and then my web app is also a server, even if it's "only" 20 lines of code and I need other tools to make sure that this server never crashes or automatical…
Web hostings have abstracted this for you. In reality, you need to install Apache or Nginx first. PHP does have a built-in server but its for testing only not production.
Nodejs is both a server and a webapp. You just need to install nodejs at bare minimum to run a "hello world".
Try installing nodejs and php on DO to see what I mean.
With regards to nodejs overtaking PHP, various stats from various sources back this up.
> it doesn't change all the time and you can be quite confident that it'll keep running for another decade.
Now thats just false. The switch to PHP7 from PHP5 alone has many BC breaks. Latest Drupal is a rewrite. Laravel LTS dont last "a decade". Code breaks all the the time in PHP land. The only thing that dont change in PHP world is WordPress.....