3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function bar() { echo isset($this) ? 'Instance' : 'Class', "\n"; } } // OK: foo = new Foo(); foo->bar(); class Baz { function test() { Foo::bar(); } } // Take care: $baz = new Baz; $baz->test();

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.240.0130.04612.40
5.4.230.0130.04712.39
5.4.220.0130.04712.39
5.4.210.0120.04912.39
5.4.200.0120.04912.39
5.4.190.0180.05812.39
5.4.180.0130.04912.39
5.4.170.0120.04712.39
5.4.160.0130.04912.39
5.4.150.0130.04312.38
5.4.140.0140.04512.07
5.4.130.0130.04312.06
5.4.120.0100.04912.02
5.4.110.0260.06312.02
5.4.100.0130.04212.02
5.4.90.0100.05012.02
5.4.80.0150.04312.02
5.4.70.0150.04512.01
5.4.60.0140.04612.02
5.4.50.0130.04312.02
5.4.40.0140.04212.00
5.4.30.0340.07312.00
5.4.20.0130.05011.99
5.4.10.0150.04812.00
5.4.00.0180.04611.49
5.3.280.0320.07512.71
5.3.270.0130.04912.73
5.3.260.0140.04812.72
5.3.250.0160.04112.72
5.3.240.0170.04712.72
5.3.230.0130.04712.71
5.3.220.0140.04212.68
5.3.210.0140.04512.68
5.3.200.0160.03912.68
5.3.190.0130.04712.68
5.3.180.0140.04512.67
5.3.170.0190.06912.67
5.3.160.0120.04612.67
5.3.150.0140.04412.67
5.3.140.0120.04512.66
5.3.130.0130.04512.65
5.3.120.0140.04312.66
5.3.110.0160.04112.66
5.3.100.0100.04612.12
5.3.90.0140.04212.09
5.3.80.0100.04612.08
5.3.70.0240.06412.08
5.3.60.0150.04312.07
5.3.50.0250.06812.02
5.3.40.0130.04312.01
5.3.30.0130.04411.97
5.3.20.0180.05511.75
5.3.10.0120.04911.71
5.3.00.0170.04111.70

preferences:
167.19 ms | 1398 KiB | 7 Q