New in PHP 8


The JIT — just in time — compiler promises significant performance improvements, albeit not always within the context of web requests. There haven’t been any accurate benchmarks done at this point, but they sure will come.

If you want to know more about what the JIT can do for PHP, you can read another post I wrote about it here.

#Static return type RFC

While it was already possible to return selfstatic wasn’t a valid return type until PHP 8. Given PHP’s dynamically typed nature, it’s a feature that will be useful to many developers.

class Foo
    public function test(): static
        return new static();

[adinserter block=”3″]

[adinserter block=”4″]

2 of 6
Use your ← → (arrow) keys to browse