3v4l.org

run code in 500+ PHP versions simultaneously
<?php abstract class A { abstract public $x { get; } } class C extends A { private $_x; public $x { get => $this->_x; } } var_dump((new ReflectionProperty(C::class, 'x'))->isVirtual()); // should be: bool(true) $c = new C; $c->x = 3; // should throw an error: 'Property C::$x is read-only'

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.50.0080.00116.66

preferences:
41.78 ms | 493 KiB | 4 Q