this post was submitted on 19 Jul 2025
1071 points (98.5% liked)

Programmer Humor

25180 readers
1671 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 2 years ago
MODERATORS
 

Source.

Yep, PHP is turning 30 this year! Wondering if "PHP is still relevant?" Ever since we have been hearing that PHP is dead. It was “dead” 10 years ago, 5 years ago, and “is dead” today. But somehow - it isn’t. Anyway... happy birthday!

top 50 comments
sorted by: hot top controversial new old
[–] cupcakezealot@piefed.blahaj.zone 24 points 3 days ago* (last edited 3 days ago)

this is perl erasure

also php didn't cause the internet to suck; overreliance on javascript (and js based frameworks) did. there's a reason that modern internet is so slow and clunky and it's not php. at least php has the capabibility to improve over time not degrade.

[–] magic_lobster_party@fedia.io 134 points 4 days ago (1 children)

PHP will remain alive as long Wordpress is still being used.

[–] Scrollone@feddit.it 24 points 4 days ago* (last edited 4 days ago)

But let's not forget that the WordPress codebase is absolute dogshit.

And not an example of how to write proper modern PHP.

[–] Decq@lemmy.world 98 points 4 days ago* (last edited 4 days ago) (6 children)

Let's be honest though. The early PHP versions were absolute dog shit. And the definition of how not to design a programming language. That said, that never stopped anyone in web development from using it apparently. No clue what modern PHP looks like, apparently it's better now.

[–] kingofras@lemmy.world 59 points 4 days ago (3 children)

Was not intended as programming language. The name literally stands for Hypertext PreProcessor. It was meant to be a script injector for HTML back when the internet was still fun.

Then it got out of hand and PHP didn’t evolve fast enough to be a web technology leader, but never ceded the position of old trusty workhorse, and still powers a significant part of websites.

[–] Decq@lemmy.world 21 points 4 days ago

I somewhat know the history of PHP and how it came to be. And that it was just a personal project that suddenly got big. So I don't blame the creator. But that still doesn't make it a good language.

load more comments (2 replies)
[–] chunes@lemmy.world 9 points 3 days ago (1 children)

I've never heard of a programming language that people don't consider shit

load more comments (1 replies)
[–] thesystemisdown@lemmy.world 18 points 4 days ago (4 children)

Modern PHP is better because it's modern. Which early version of a programming language was good? I've used a lot of them, and by modern standards, I think dog shit is a somewhat appropriate description for most of them.

load more comments (4 replies)
load more comments (3 replies)
[–] BlameTheAntifa@lemmy.world 77 points 4 days ago (9 children)

In PHPs defense, it keeps evolving in positive, meaningful ways. If you are up to date with it, it’s quite sophisticated and enjoyable. Doubly so if you use a framework like Laravel.

[–] mriswith@lemmy.world 19 points 4 days ago* (last edited 4 days ago) (1 children)

Most memes or jokes referencing a direct problem in PHP, are old or made by people who haven't touched the language in a decade(version 7 was in 2015, and it removed/fixed a lot of issues and added needed features).

There's also the huge looming thing that a lot of programmers forget: Websites like Wikipedia run on PHP, not to mention the amount of WordPress and similar websites are out there. Which means it will keep going strong. And for a while Facebook also used quite a lot of it, to the point where they made a rudimentary compiler instead of rewriting parts in more efficient languanges.

load more comments (1 replies)
load more comments (8 replies)
[–] jenesaisquoi@feddit.org 27 points 3 days ago* (last edited 3 days ago) (4 children)

Ah yes, the language that picked strlen as the hash function for its hashtables.

[–] Blackmist@feddit.uk 13 points 3 days ago (1 children)

Javascript is living proof that your language doesn't need to be good to be used.

I tripped over this one in Delphi the other day.

function AnsiStartsText(const ASubText, AText: string): Boolean;
function AnsiEndsText(const ASubText, AText: string): Boolean;
function AnsiContainsText(const AText, ASubText: string): Boolean;
load more comments (1 replies)
[–] keepee@lemmy.world 9 points 3 days ago (1 children)

Can you elaborate on this?

load more comments (1 replies)
load more comments (2 replies)
[–] darvit@lemmy.darvit.nl 38 points 3 days ago (12 children)

Everyone in this thread: PHP sucks because it was bad when I last used it 20 years ago.

[–] ICastFist@programming.dev 18 points 3 days ago

It's still bad nowadays, and it's the main language used on pretty much every system of several state level secretaries in Brazil. My colleagues work with it daily (I don't program, thankfully) and they're not exactly fond of it. Legacy systems, man

[–] dreadbeef@lemmy.dbzer0.com 9 points 3 days ago* (last edited 3 days ago)

Backend devs: JS sucks because I never learned it actually

load more comments (10 replies)
[–] simonced@lemmy.ml 15 points 3 days ago (1 children)

Array_filter and array_map having the arguments swapped pisses me of so much.!

load more comments (1 replies)
[–] ursakhiin@beehaw.org 26 points 3 days ago (1 children)

PHP will never die. As long as code is written there will be PHP developers there to claim it's good now.

load more comments (1 replies)
[–] merc@sh.itjust.works 46 points 4 days ago (10 children)

Where I live, I still see people in a horse-drawn wagon. So, I guess horse-drawn wagons never died? It's only used for tourists and weddings, but that counts, right?

According to Tiobe, PHP was the programming language of the year in 2004. In 2010 it was number 3 in the top 10 programming languages. It's now out of the top 10 entirely. There really isn't a language that has completely disappeared. Mainframes are still programmed using COBOL, Scientists are still using FORTRAN, even Lisp, which has been around since the 1950s, is still going strong.

Maybe Actionscript counts as truly dead, since it was tied to Adobe Flash, and Flash is truly dead?

I have a lot of bad memories of PHP. It was, for a brief time, the main language I used, but it was so ugly and inconsistent. The only thing I loved about it, at the time, was that it wasn't Visual Basic. As bad as PHP was, at least I wasn't making web pages in that pile of hot garbage. But, I never felt joy writing something in PHP. At best it was a slog. At worst it was like pulling teeth.

Just about every other language has given me moments of fun. Original Javascript was a mess, but it already contained scheme-like features. It was sold as being an interpreted version of Java, but it had features that Java wouldn't have for at least a decade. C is a brutal and unforgiving language, but as long as you're not working with strings, it's great to have such low-level control over everything.

Maybe PHP has evolved like other languages, but I still am not interested in trying it out. Everything it was good at can be done better by other languages, and those are languages that give me joy, not pain. I hope it keeps dropping in the rankings so that people aren't exposed to it as one of their first languages.

[–] kameecoding@lemmy.world 14 points 4 days ago* (last edited 4 days ago) (7 children)

Yeah, I think this is a more fitting meme to be about Java, because despite all the java is dead articles it's still like one of the top most used language, if anything is a serious backend service it likely runs on Java.

load more comments (7 replies)
[–] PumaStoleMyBluff@lemmy.world 10 points 3 days ago (1 children)

There are still Amish and Mennonite communities who use horse-drawn wagons and farm implements their whole lives.

Not really meant to be an argument to your point, just interesting to know.

load more comments (1 replies)
load more comments (8 replies)
[–] lime@feddit.nu 42 points 4 days ago (19 children)

my entire way of reasoning about programming languages changed when i read on article about how hating on php was misogynistic. i clicked on it because it just sounded like yet another ragebait, but it made sense.

basically, since php is simple, and integrated with html, the vast majority of php devs started out as designers who later got into code. since php has always been a mess, nobody wanted to build mainstream tooling for it except the people actively working with the language. this means that mainstream ideas about language and tooling design didn't percolate down to php like it has done to most languages. so php devs, when exposed to tooling the rest of the world takes for granted, are usually overwhelmed because not only is there a lot of it, nobody in php-land uses tools like that. so they get called bad devs of a bad language. some of them, who really like to code, push through this massive difficulty spike, while others just assume that "actual programming" is too hard and go back to design, even though tooling usage has little to do with your skill as a programmer.

the kicker, of course, being that web design has more women than most other dev specialisations.

[–] kshade@lemmy.world 26 points 4 days ago (3 children)

Is disliking something that (allegedly) is more popular with women than the average thing of its category anti-woman, even if no part of the complaint involves the user or their gender? The majority of users is likely still male anyway.

[–] lime@feddit.nu 16 points 4 days ago (2 children)

not directly, but trash-talking it and gatekeeping "real programming" from the language most likely to be used by women is not exactly conducive to improved equality in the profession.

i realise now that i didn't explicitly mention my point in the first post, so:

  • shitting on other people's jobs is bad.
load more comments (2 replies)
load more comments (2 replies)
load more comments (18 replies)
[–] dreadbeef@lemmy.dbzer0.com 8 points 3 days ago

Js is dead use php!

[–] JimVanDeventer@lemmy.world 25 points 4 days ago

Happy 44th birthday IPv4! 🥳

[–] paulbg@programming.dev 16 points 4 days ago (13 children)

bro ive been doing fullstack js dev for severals years to then realize php is superior💀

load more comments (13 replies)
[–] Simulation6@sopuli.xyz 22 points 4 days ago (2 children)

Well, at least PHP isn’t as bad as JSP.

[–] LovableSidekick@lemmy.world 16 points 4 days ago (2 children)

Or TSP (trisodium phosphate) - which you can't even make websites with, but it's great for cleaning oil spots off the driveway.

load more comments (2 replies)
[–] GreenKnight23@lemmy.world 15 points 4 days ago (1 children)

jsp answered the question, "What if Java was like PHP but with more Java?"

jsp deserved to die.

load more comments (1 replies)
[–] SpaceNoodle@lemmy.world 21 points 4 days ago (20 children)

Replaced the P in LAMP with Python when I started building webpages again a few years ago, and never looked back. Such a vastly more pleasant experience.

load more comments (20 replies)
[–] TomMasz@piefed.social 21 points 4 days ago (3 children)

It's old and ugly, the worst tool you can use for anything, and unkillable.

load more comments (3 replies)
[–] leds 16 points 4 days ago (1 children)

Maybe 25 years ago i build my first website for a paying customer ( my dad). I decided to go for php which was new to me at the time.

I figured it would be too risky ( even back then) to have PHP generate dynamic pages so instead I had php generate static html.

So whenever website needed updating , for example a new folder with images was added, you could just load the admin.php and it would generate gallery pages for you.

Would probably still work 25 year later if wasn't eventually replaced with some WordPress or something

[–] Zachariah@lemmy.world 15 points 4 days ago (1 children)

for many websites, this is the ideal way to do it

makes it order of magnitude more secure

load more comments (1 replies)
[–] josefo@leminal.space 16 points 4 days ago (1 children)

It's true that the fuckers that stayed in PHP now are getting paid insane amounts of money to maintain systems? I've heard they are the new cobol people.

load more comments (1 replies)
load more comments
view more: next ›