3v4l.org

run code in 300+ PHP versions simultaneously
<?php // https://gist.github.com/dave1010/11393640 class Bar{} $bars = [new Bar, new Bar, new Bar]; function foo(Bar $bar, ... $bar) { // echo "Got " . count($bars) . " bars.\n"; var_dump(func_get_args()); } foo(...$bars);

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.6.280.0100.06720.87
5.6.210.0070.07020.77
5.6.200.0000.06318.29
5.6.190.0000.05320.43
5.6.180.0600.06320.41
5.6.170.0470.07320.47
5.6.160.0030.04320.47
5.6.150.0070.08018.16
5.6.140.0030.09018.14
5.6.130.0000.07718.13
5.6.120.0130.07721.01
5.6.110.0070.05721.02
5.6.100.0070.06720.98
5.6.90.0070.08320.97
5.6.80.0100.07720.51
5.4.280.0090.03212.38
5.4.270.0060.03712.38
5.4.260.0060.04012.38
5.4.250.0080.03912.38
5.4.240.0060.03612.38
5.4.230.0060.03812.37
5.4.220.0040.03912.37
5.4.210.0070.03512.38
5.4.200.0050.04412.37
5.4.190.0060.04312.37
5.4.180.0090.03912.37
5.4.170.0070.03712.38
5.4.160.0070.03412.37
5.4.150.0070.03512.37
5.4.140.0050.03812.06
5.4.130.0080.03412.04
5.4.120.0040.03812.01
5.4.110.0080.04812.00
5.4.100.0090.04412.00
5.4.90.0080.03512.00
5.4.80.0060.04012.01
5.4.70.0060.03812.00
5.4.60.0040.04212.00
5.4.50.0050.04212.00
5.4.40.0050.03811.99
5.4.30.0070.04111.98
5.4.20.0030.03911.98
5.4.10.0050.04411.98
5.4.00.0040.04411.48
5.3.280.0090.03612.71
5.3.270.0090.03812.73
5.3.260.0070.04012.72
5.3.250.0060.04312.72
5.3.240.0100.03712.72
5.3.230.0080.05312.71
5.3.220.0070.03912.68
5.3.210.0100.05112.68
5.3.200.0090.04312.68
5.3.190.0070.04012.67
5.3.180.0100.03512.68
5.3.170.0090.03612.67
5.3.160.0110.03712.67
5.3.150.0150.04012.68
5.3.140.0030.04112.66
5.3.130.0050.04012.66
5.3.120.0070.04012.65
5.3.110.0090.05312.66
5.3.100.0120.03512.12
5.3.90.0080.03512.09
5.3.80.0060.04812.07
5.3.70.0050.03912.08
5.3.60.0060.05012.06
5.3.50.0100.04812.00
5.3.40.0150.04012.00
5.3.30.0060.03611.95
5.3.20.0100.03411.73
5.3.10.0080.03411.70
5.3.00.0070.03811.68

preferences:
139.22 ms | 1394 KiB | 7 Q