The Dinosaur Bias: Why We Keep Criticizing a PHP That No Longer Exists

Automated English translation of the original Spanish article. Code examples keep their original identifiers.

In technology, bad reputations take an eternity to die, long after the mistakes that spawned them have vanished from the map. There are still people who claim with absolute conviction that PHP is “chaotic,” “insecure,” or a “toy language”… and it’s coming from folks who haven’t touched a .php file since the days when Internet Explorer 6 was king and the mysql_ extension seemed like a good idea.

It’s time to talk about the dinosaur bias: that mental block preventing people from accepting that the language they knew 15 years ago no longer exists. In its place stands a modern tool with optional yet powerful strict typing, performance that competes toe-to-toe with other languages, and an ecosystem that continues to power around 72–74% of the web (and yes, according to W3Techs in 2026, it remains the undisputed king of market share).

The Origin of the Myth: The PHP That Actually Was Terrifying

The “dinosaur” nickname is no accident. Almost every time someone bashes PHP recently, they rely on memories of versions 4.x or 5.6 (roughly between 2000 and 2014): global variables everywhere, raw mysql_query() calls without any prepared statements, spaghetti code embedded directly into HTML, and “security” that essentially boiled down to praying you wouldn’t get hacked. That PHP is deader than the hard drive in my first Pentium IV. It has been buried for over a decade.

The Real Metamorphosis: From PHP 7 to PHP 8.5

Since 2015, the language has changed so dramatically that many critics seem to purposefully ignore it. It is no longer just about “running faster”; it is a profound architectural evolution:

  • PHP 7.x (2015 onwards): Complete redesign of the Zend Engine, virtually doubling performance, adding strict scalar typing, and introducing the famous spaceship operator <=> we all take for granted now.
  • PHP 8.0 to 8.2: The introduction of the JIT (Just-In-Time) compiler, which truly matters under heavy computational loads, union types, enums, readonly classes, attributes, named arguments… a mountain of syntactic sugar that makes code far more expressive and secure.
  • PHP 8.4 (late 2024): A major leap forward with Property Hooks, essentially allowing you to embed logic directly into properties without writing endless getters and setters. It also brought asymmetric visibility, native HTML5 support in the DOM, and several additions that streamline daily development.
  • PHP 8.5 (late 2025, the version we use today in 2026): Extreme refinement of the type system, enhanced introspection for constants and classes, and an even more mature JIT optimized for long-running, highly concurrent applications.

Today, it is completely normal to see code that breathes cleanliness, immutability, and safety from minute one. Take a look at this simple, up-to-date example:

readonly class Product
{
    public function __construct(
        public string $name {
            get => $this->name;
            set($value) {
                if (strlen($value) < 3) {
                    throw new InvalidArgumentException('El nombre debe tener al menos 3 caracteres.');
                }
                $this->name = trim($value);
            }
        },
        public Category $category,
        public ?float $price = null
    ) {}
}

With just a few lines, you have property validation, class immutability, strict typing… and zero boilerplate.

Debunking the Classic Criticisms

  • “PHP is insecure”: The dangerous functions of the past (mysql_, addslashes, etc.) were removed years ago. Today’s standard is PDO with prepared statements or mysqli with prepare. Frameworks like Laravel and Symfony enforce secure-by-default practices (CSRF, automatic escaping, strict validation) that put to shame many rushed implementations in other languages.
  • “Nobody uses it, it’s dead”: W3Techs statistics don’t lie: PHP still powers around 72–74% of websites with a known server-side language. Not just WordPress: Wikipedia, Etsy, Slack, massive parts of Facebook (HHVM originated from PHP), Moodle, Drupal… PHP scales at an enterprise level with resource efficiency that many envy.
  • “Anyone can write horrible code in PHP”: Sure, and you can write horrible code in JavaScript, Python, Go, and even Rust. The difference is that modern PHP’s ecosystem (Composer, PSR-12, PHPUnit, PHPStan, Psalm, Rector, Laravel Pint…) equips you with static analysis and discipline tools that have nothing to envy in compiled languages. If the code is bad, it’s because the developer chose to write it badly—not because the language forced them to.

The Root Cause: Cognitive Laziness Disguised as Superiority

Bashing PHP is cheap and makes you feel smart on X, Reddit, Hacker News, or a Telegram group. Keeping up requires effort: you have to install PHP 8.5, test property hooks, understand attributes, migrate legacy code, and accept that what you knew in 2012 isn’t worth much anymore. It’s much easier to parrot the “PHP is garbage” meme from 2010 than to open the current documentation and see what’s actually there.

Time to Retire the Dinosaur Once and for All?

PHP isn’t perfect (no language is), but in 2026, it is a completely rational, blazing-fast, and powerful choice for the vast majority of web projects.

If someone prefers to keep hating it based on how it was in 2008, that’s on them. But let’s be honest: stop criticizing a corpse. Critique the living language, or better yet, try it out with an open mind.

When you spin up a fresh project in PHP 8.5 with Symfony 7, Laravel 12, or even a clean microservice using just the core… you will likely experience what many of us did: you’ll realize the dinosaur went extinct long ago, and what remains is a dominant, mature, and—yes, I’ll say it—surprisingly elegant tool.

What about you? When was the last time you gave modern PHP a real chance?