3v4l.org

run code in 500+ PHP versions simultaneously
<?php class SkipProtectedPropertyOnNonFinalClass { protected int $value = 5; public function __construct(int $value) { $this->value = $value; } public function getValue() { return $this->value; } } class SomeChild extends SkipProtectedPropertyOnNonFinalClass { public function __construct() { } } $obj = new SomeChild(); echo $obj->getValue();

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.5.90.0080.00016.82
8.5.80.0310.00716.85
8.5.70.0070.00218.47
8.4.240.0130.00919.54
8.4.230.0110.00521.27
8.4.90.0060.00419.61
8.3.330.0100.01118.32
7.2.170.0240.00816.46

preferences:
53.55 ms | 508 KiB | 5 Q