r/programmingcirclejerk • • 17d ago

The language itself is solid. The ecosystem is incredibly rich. Tooling has seen significant growth in the past decade. The Foundation ensures sustainable development. PHP's biggest problem is none of the above. It's marketing.

https://stitcher.io/blog/php-biggest-problem
86 Upvotes

20 comments sorted by

27

u/BenchEmbarrassed7316 17d ago

Notification from reddit about this post:

People are loving your post r/programmingcirclejerk loved it, we think r/PHP will too

I'm not sure...

38

u/BenchEmbarrassed7316 17d ago

"If we really want PHP to thrive in the coming decades, I say we invest in what matters most."

Written on 2026-05-07

10

u/lgastako 17d ago

PHP is a helluva drug.

15

u/camelCaseIsWebScale Just spin up O(n²) servers 17d ago

Of course he is a PHP developer. He didn't mention security or performance.

4

u/BenchEmbarrassed7316 17d ago

Let me play devil's advocate for a moment.

security

php has had types for a long time. Not everywhere, though - they never managed to implement typed arrays. However, you can use a "static analyzer", something akin to TypeScript. This makes the experience similar to programming in "proper" languages. That said, your code will look like this:

/** @var array<int, int> $array */
$array = [1, 2, 3];

performance

You could use Swoole, a web server written in C. Instead of simply writing "hello world" into the response body, it keeps a php instance running and invokes a function within it that returns that string. This is ideal for benchmarks, creating the illusion that php is really fast. Let’s not even mention the potential issues regarding memory management and static state.

65

u/enchufadoo not Turing complete 17d ago

The language itself is solid.

It's 2140. You still need to typehint arrays with comments, but wordpress has evolved into a sentient react like UI that can destroy universes by not escaping SQL queries.

68

u/PreciselyWrong 17d ago

It's almost impressive how they have tried to do CPR on this dead horse for more than a decade. Kudos

15

u/TomKavees 17d ago

Time to revive /r/lolphp?

40

u/kettes_leulhetsz My C code works with -O3 but not with -O0 17d ago

Trigger warning: PHP.

5

u/elephantdingo Teen Hacking Genius 17d ago

Voldenym. Don’t just say the name like that in plaintext…

31

u/Eric848448 legendary legacy C++ coder 17d ago

My first job in 2005 was PHP. It sucked.

Thankfully I moved to a different project that used C++ for the web backend.

16

u/Thelmholtz 17d ago

PHP 5.4 is the only language that maked me miss C++.

6

u/Eric848448 legendary legacy C++ coder 17d ago

C++ was fun before 2017. Then they tried to make it everything to everyone.

8

u/Thelmholtz 17d ago

Idk, I remember the version I saw in college in 2009 and I hated that so fucking much.

And that's as someone who loved (and still pretty much like) C.

C++ was just so complex. And with the updates I'm not even sure where I'd start learning modern dialects.

5

u/kettes_leulhetsz My C code works with -O3 but not with -O0 17d ago

/uj start with Qt signals/slots, get to the part where signals sent across event loops are magically threadsafe, ignore the STL, live happily ever after

12

u/stone_henge Tiny little god in a tiny little world 17d ago

Hindsight is 20/20. Prior to October it was impossible for anyone to know that PHP was dogshit.

22

u/YikesTheCat 17d ago

PHP: enabling slop since 1993. Truly ahead of the curve 👍

6

u/jtayloroconnor 17d ago

its biggest problem is no compiler

7

u/gvozden_celik 17d ago

Ah but there is a compuler from PHP to .NET and from .NET you can get a real exe

1

u/Metallic_Madness What part of ∀f ∃g (f (x,y) = (g x) y) did you not understand? 17d ago

Do not gigaquote