and people wonder why we say PHP is a meme
You're viewing a single thread.
Why
To quote the guy who invented PHP:
"I don't know how to stop it, there was never any intent to write a programming language [...] I have absolutely no idea how to write a programming language, I just kept adding the next logical step on the way."
Yes, PHP was originally meant to be a template language, like handlebars or thymeleaf, but kept on accumulating features along the way...
They didn't think about which order ternaries should compute in when they coded the php interpreter