3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface If { function bar(stdClass $arg); } class Foo implements If { function bar(stdClass $arg) { var_dump($arg); } } $foo = new Foo; $foo->bar(new DateTime());

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.210.0050.04412.38
5.4.200.0120.05012.37
5.4.190.0130.04612.36
5.4.180.0140.04912.36
5.4.170.0140.04512.37
5.4.160.0200.04212.36
5.4.150.0300.09712.36
5.4.140.0210.04912.05
5.4.130.0200.04312.03
5.4.120.0330.08912.00
5.4.110.0120.04811.99
5.4.100.0170.04312.00
5.4.90.0120.04511.99
5.4.80.0140.04312.00
5.4.70.0110.04811.99
5.4.60.0140.04311.99
5.4.50.0310.09011.99
5.4.40.0130.04411.98
5.4.30.0150.04311.98
5.4.20.0170.03911.97
5.4.10.0180.03811.98
5.4.00.0120.04411.47
5.3.270.0160.04512.72
5.3.260.0150.04612.72
5.3.250.0170.04312.72
5.3.240.0160.04312.72
5.3.230.0160.04412.71
5.3.220.0130.04612.68
5.3.210.0160.04312.68
5.3.200.0140.07512.68
5.3.190.0110.04912.68
5.3.180.0240.06812.67
5.3.170.0140.04612.67
5.3.160.0180.04212.67
5.3.150.0130.04712.68
5.3.140.0190.04012.66
5.3.130.0140.04712.66
5.3.120.0160.04412.66
5.3.110.0180.04212.66
5.3.100.0340.08612.12
5.3.90.0170.04212.09
5.3.80.0220.03712.07
5.3.70.0100.05112.07
5.3.60.0150.04512.06
5.3.50.0130.04512.00
5.3.40.0340.08712.00
5.3.30.0160.04111.94
5.3.20.0190.03911.71
5.3.10.0170.04311.67
5.3.00.0110.04611.65

preferences:
138.25 ms | 1394 KiB | 7 Q