The three most prevalent themes in the Hacker News discussion about PHP 8.5 center on the language's continuous evolution, the ongoing debate regarding its historical reputation and complexity, and the practicality/necessity of newly introduced syntactic features.
1. PHP's Continuous Modernization vs. Complexity
Many users acknowledge that modern PHP is greatly improved and acknowledge the effort put into its evolution, but others express concern that this rapid pace is making the language unnecessarily complex or difficult to read.
-
Positive View of Modernization/Stability: Users appreciate the language catching up and maintaining old codebases: > "The most exciting thing about the PHP8.5 announcement is the stability and maturity of PHP" - dalemhurley > "PHP has come a long way since I used it in the 90s on my first little website." - boxedemp
-
Negative View of Increasing Complexity: Conversely, some feel the new features are "half-baked" or add too much cruft: > "PHP becomes a complex language with each update. For what reason? Its application is still limited to the web, mostly." - f311a > "PHP's evolution since PHP 5 has been substantial, and I think this is a real problem. As someone who learned the language years ago, the pace of change (generics, attributes, match expressions, typed properties) makes modern codebases genuinely difficult to follow." - darkamaul
2. Persistent Negative Reputation and Developer Stigma
A significant thread of conversation revolves around PHP's historical reputation for producing insecure or low-quality code, and how that perception continues to affect how developers view the language ("vanity").
-
Stigma and Pride: Several users commented on the social aspect of using PHP versus other languages. > "A lot of people are too proud to be associated with PHP." - calpaterson > "Vanity, it's 'PersonalHomePage' language" - type0
-
Historical Legacy: The poor security practices of early PHP (like SQL concatenation) are often cited as the source of its bad reputation, though modern practices mitigate this. > "I remember discussions at the time about which filename extension to use - and I can not believe that .php3 won." - dotancohen > "I think the danger with PHP is more its ability to easily cause very bad things." - nusl
3. Scrutiny Over New Syntactic Sugar (e.g., Pipe Operator)
The introduction of new, smaller features aimed at improving readability in chained operations, such as the pipe operator (|>) and new array functions, received mixed reactions, with critics arguing they add unnecessary syntax variety or are unnecessary given the language's existing capabilities.
-
Skepticism about Utility: Some users found the new operators to be low-value additions that increase cognitive load. > "I don't need it - these nested methods are not really an issue in any codebase I've seen." - dotancohen > "The pipe operator is definitely one of the feature that create more ways to do the same thing while providing unclear benefit." - kreco
-
Defense of New Syntax: Supporters argued the new features, especially when combined with planned ones (like partial function application), dramatically improve readability over nested calls. > "The arrow is much more readable, and array functions are very simple too." - array_key_first