r/webdev • • 26d ago

Question How warranted is the PHP hate?

I feel like there has been a lot of hate on PHP, especially after the recent blowout regarding PHP vulnerabilities that even ended up on mainstream media. I even saw absolute non-techy people bringing up PHP and talking authoritatively about how "bad" and "old" it was lol. Not to mention the AI-shills saying one should just use Claude to create one owns CMS (!!). I am also aware that most PHP hate is usually misaligned hate intended for badly managed WordPress sites. And that some people just prefer other languages or love a hatetrain.

But one thing in particular that got to me was someone who mentioned that PHP has a page with vulnerabilities listed that go back 20 years and have yet to be patched. And that if you are a dev who is in any way interested in security within one's projects, you just don't use PHP at all. It was like having only a screen-door for your house with no locks. Do other languages have similar list of unsolved vulnerabilities? What makes them inherently more secure?

I dug around to find information about other popular programming languages and frameworks and it seems like at least right now, many are being found to have vulnerabilities due to AI being used to find them. React had a critical issue about a year ago, and Python earlier this year (although they did not blow up in the press like this).

Anyway, I would like to hear from people who use PHP regularly for work, beyond WordPress and who can maybe compare it to other languages/stacks as well. Please no low-effort replies from people who last used PHP 20 years ago or just don't like it, if possible.

0 Upvotes

89 comments sorted by

View all comments

Show parent comment

2

u/pineappletinis 26d ago

Thank you for this explanation. I was going to ask why not just update the PHP version, but you answered the question. That would entail rewriting the entire codebase which is unfeasible. The thing is, with NodeJS, doesn’t that come with having to juggle countless npm-packages which comes with its own risk? Especially since some of them are just maintained by like one open-source dev? Not trying to hate, just confused and trying to understand.

1

u/crixx93 26d ago

It's not set in stone yet. NodeJS is the favorite, but Go and Rust are also contenders, we are suppose to decide next week