Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

JoaoHamerski's avatar

There is some good reason to keep using PHP? Why do people are migrating to NodeJS?

I would like to understand.

I've been seeing how much NodeJS has been growing up the last years, consequently PHP is getting less used, i would like to know if currently worth it keep using and developing new things in PHP.

Why should i use PHP instead of NodeJS?

0 likes
8 replies
martinbean's avatar

@joaohamerski Why should you use Node.js instead of PHP? Why should you use any particular language?

Use whatever you’re comfortable and most productive with. PHP isn’t going anywhere any time soon. It powers over 75% of the world’s websites.

bestmomo's avatar

There is some good reason not using PHP?

Snapey's avatar

I read this and wondered if it was a three year old question. Ive not heard any mention of Node in absolutely ages

jlrdw's avatar

If concerned about a language that will definitely be around a long time to come., go with c, c++, java, or assembly language.

But there are even articles concerning node js is dying. So basically take with a grain of salt what you read on the web sometimes. Meaning some of those articles just are not true.

In fact over the past few years PHP has come a very long way, 15 plus years ago it wasn't thought of hardly at all for Enterprise, now it's right up with asp.net and Java.

But I believe PHP is going to be around a long time as well. But remember it's parent language is C.

piljac1's avatar

If anything, what is growing right now is Blazor. However, it won't ever be as popular as any technology/framework based on a "free" language, because it is in C#.

siangboon's avatar

you can choose to learn/use either one or learn/use both together at the same times. there is no good reason to compare each other... I believed that by the time you retired, PHP and nodejs still exists and using by many people... this question may still got people asking...

neilstee's avatar
neilstee
Best Answer
Level 34

@joaohamerski

There is some good reason to keep using PHP?

Almost 80% of the website today uses PHP. That alone is a good reason.

PHP community continues to grow as well as new tools getting introduced.

Why should I use PHP instead of NodeJS?

Why would you use these tools in the first place? Because you have a problem to solve or an application to build right?

Let's say you want to build a simple blog app, ask yourself, can you build it using PHP? If yes then go for it. If not then try to find other tools that it will make happen. Of course there other factors like performance and scalability but trust me, you will know those things as you go along.

Another example is if you want to build some Machine Learning stuff, Python might be your best bet. Although I'm not familiar with that topic, you should get the idea that it really boils down to the problem you are solving.

As @JeffreyWay says "We don't learn tools for the sake of learning tools. Instead, we learn them because they help us accomplish a particular goal."

And lastly...

consequently PHP is getting less used

The circle you are in matters as well 😉

Please or to participate in this conversation.