3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function f($c) { $c->m(); return $c; } } class B { public function g($c) { $ret=A::f($c); if($ret===false) { echo "Should never print this\n"; } } } class C { public function m() { self = null; } } $b = new B(); $b->g(new 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)
5.4.230.0050.03912.40
5.4.220.0120.04712.39
5.4.210.0100.04512.40
5.4.200.0120.04612.40
5.4.190.0230.06212.39
5.4.180.0120.03912.39
5.4.170.0130.04112.40
5.4.160.0150.04112.40
5.4.150.0120.04212.39
5.4.140.0160.05812.08
5.4.130.0120.03912.06
5.4.120.0110.04112.03
5.4.110.0130.03812.03
5.4.100.0150.05012.03
5.4.90.0100.04212.03
5.4.80.0080.04512.03
5.4.70.0130.03912.02
5.4.60.0100.04012.02
5.4.50.0130.03812.02
5.4.40.0130.03612.01
5.4.30.0090.04112.01
5.4.20.0100.04312.00
5.4.10.0160.05412.01
5.4.00.0130.03811.50
5.3.280.0040.03912.71
5.3.270.0110.04312.72
5.3.260.0130.04512.72
5.3.250.0240.06312.72
5.3.240.0080.04612.72
5.3.230.0130.04412.71
5.3.220.0210.05112.68
5.3.210.0140.04712.68
5.3.200.0150.04712.68
5.3.190.0140.04912.68
5.3.180.0170.03812.67
5.3.170.0160.06312.67
5.3.160.0130.04212.67
5.3.150.0190.04212.67
5.3.140.0100.04512.66
5.3.130.0270.08112.66
5.3.120.0140.04212.65
5.3.110.0140.04812.66
5.3.100.0130.04412.13
5.3.90.0120.04112.10
5.3.80.0120.04512.09
5.3.70.0240.06012.09
5.3.60.0130.04212.08
5.3.50.0130.04612.02
5.3.40.0130.06912.02
5.3.30.0130.04211.98
5.3.20.0150.03911.77
5.3.10.0160.03711.73
5.3.00.0140.04111.72

preferences:
138.97 ms | 1394 KiB | 7 Q