Usually, whenever Web Developers are starting a new Project they would look for a web technology and a programming language to use for there target application and the most common two languages nowadays are PHP and Node.js (Node.js is a Development Environment), in this guide we will cover the major differences between both of them and where you should use one over the other depending for your case.
PHP is a Server Side Scripting Language Created Specifically for the web and widely used for almost any website or web app besides all of that it is easy to use, usually used for building basic blogs and WordPress sites.
Let's take a look at the differences between both of these languages (Dev Environment)
Well, What Should I Go For?
if this question still in your head and you still trying to figure out how and why to choose one over the other, here is my opinion about that and how to choose for wisely among them:
However, if you want to make quickly develop lightweight websites or web apps using one of the famous CMS (Wordpress, Joomla) for clients and sell small projects online or works as a freelance, PHP will take the lead on this since it is very easy to get started with as well as it is in very high demand for projects as a freelance besides it has a lot of MVC Frameworks that are going to make the day for you.
In My Opinion, I Would suggest earning Node.js since it is going to be the next big thing.
And Most Importantly, Enjoy Coding.