Hacker News new | ask | show | jobs
The PHP Singularity (blog.codinghorror.com)
3 points by vladde 26 days ago
2 comments

some years ago, i worked on migrating a PHP 5.6 code base to 7. it was the combination of of "odd" programmer decisions and weird language features that made me really un-love the language.

also, sadly, phpsadness.com is no longer active, but some of the of the gripes with the language eventually were fixed. archive link: https://web.archive.org/web/20261004002230/http://phpsadness...

once i left my old workplace i haven't felt the need to work with PHP again.

PHP is somewhat romanticized. It’s a bit like saying that using COBOL is right choice just because half of the U.S. banking system runs on it. When you look at PHP, the syntax leaves much to be desired. There are hardly any proper data structures, an array is just an awkward hybrid of a hash table and an array. I’ve often run into issues when working with them. Type definitions only exist for primitive fields and parameters, for everything else (deep data structures, such as array of some class instances), you have to rely on doc comments. Languages like Dart, Kotlin, and even TypeScript (with strict type checking options) are much more pleasant to work with when the code is complex and types are important. That being said, PHP has some architectural advantage, such as one thread running per request, which makes PHP sites significantly more robust by default, so it might be more tolerant to some types of bad code (for example, code that might cause hanging or excessive use of memory).

Here is my opinion about PHP: https://waspdev.com/articles/2025-06-12/my-honest-opinion-ab...

(2012)
When PHP v5.4 was the latest & greatest - https://en.wikipedia.org/wiki/PHP#Release_summary - and rather different from current (supported) versions.

If OP was trying to say that PHP has (present tense) serious problems, there are much more recent (relevant) articles out there.