3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public int $v = 2; } class B extends A { public function getValue(A $v): void { echo $v->v; } } class C extends A { public int $v; } $b = new B; $c = new C; $b->getValue($b); $b->getValue($c);

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.4.120.0140.00620.57
8.4.110.0130.00918.83
8.4.100.0130.00817.98
8.4.90.0110.00718.25
8.3.250.0070.01118.71
8.3.240.0080.01117.04
8.3.230.0040.00516.67
8.3.220.0060.00416.52
8.3.180.0130.00616.84
8.3.50.0050.00316.65
8.2.290.0090.01016.61

preferences:
26.99 ms | 403 KiB | 5 Q