3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface I { public $x { get; } } class C implements I { 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.01016.86

preferences:
40.28 ms | 493 KiB | 4 Q