3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($bar, $baz) { return [$bar, $baz]; } function userland_call_user_func(callable $function, ...$args) { return $function(...$args); } var_dump(userland_call_user_func('foo', 'bar', 'baz'); var_dump(call_user_func('foo', 'bar', 'baz');

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.320.0410.03815.88
5.4.310.0190.03715.91
5.4.300.0300.03615.83
5.4.290.0360.03515.87
5.4.280.0350.03515.68
5.4.270.0350.03615.68
5.4.260.0490.03415.82
5.4.250.0440.03015.75
5.4.240.0380.03215.81
5.4.230.0330.03815.72
5.4.220.0430.03215.73
5.4.210.0180.03715.62
5.4.200.0350.03615.78
5.4.190.0050.03515.78
5.4.180.0210.03615.80
5.4.170.0310.03415.70
5.4.160.0320.04015.77
5.4.150.0380.03615.63
5.4.140.0480.03314.24
5.4.130.0300.03814.39
5.4.120.0450.03814.30
5.4.110.0360.03414.34
5.4.100.0260.03414.32
5.4.90.0430.03114.30
5.4.80.0290.03914.21
5.4.70.0620.03414.30
5.4.60.0230.03314.30
5.4.50.0450.03214.21
5.4.40.0360.04414.22
5.4.30.0420.03814.13
5.4.20.0380.03414.27
5.4.10.0470.03214.14
5.4.00.0500.03413.66
5.3.290.0340.04213.72
5.3.280.0480.03513.61
5.3.270.0390.04213.62
5.3.260.0390.03613.73
5.3.250.0640.03913.61
5.3.240.0180.03913.71
5.3.230.0220.04413.60
5.3.220.0440.03213.74
5.3.210.0370.03513.58
5.3.200.0150.04013.66
5.3.190.0410.03313.66
5.3.180.0230.03613.73
5.3.170.0400.04013.63
5.3.160.0310.03513.58
5.3.150.0260.03513.66
5.3.140.0600.05013.57
5.3.130.0510.03213.61
5.3.120.0290.04813.56
5.3.110.0370.03613.61
5.3.100.0220.03413.07
5.3.90.0350.03813.10
5.3.80.0250.03713.01
5.3.70.0230.03613.01
5.3.60.0270.03712.99
5.3.50.0320.03112.94
5.3.40.0550.02712.99
5.3.30.0540.03113.01
5.3.20.0290.03612.72
5.3.10.0480.03112.65
5.3.00.0430.04312.72
5.2.170.0340.02810.13
5.2.160.0440.02610.22
5.2.150.0200.02910.17
5.2.140.0270.02410.14
5.2.130.0530.03910.13
5.2.120.0360.03010.18
5.2.110.0160.02610.15
5.2.100.0480.02810.10
5.2.90.0550.02710.09
5.2.80.0380.02910.17
5.2.70.0480.02810.17
5.2.60.0400.02910.20
5.2.50.0330.02710.01
5.2.40.0110.03210.03
5.2.30.0110.0299.96
5.2.20.0350.0289.96
5.2.10.0140.0429.98
5.2.00.0190.0289.71
5.1.60.0090.0269.12
5.1.50.0260.0218.99
5.1.40.0150.0219.02
5.1.30.0190.0269.41
5.1.20.0230.0259.37
5.1.10.0310.0229.23
5.1.00.0050.0259.10
5.0.50.0110.0187.73
5.0.40.0190.0197.67
5.0.30.0040.0397.57
5.0.20.0150.0167.56
5.0.10.0150.0187.54
5.0.00.0070.0307.54
4.4.90.0080.0156.80
4.4.80.0100.0166.79
4.4.70.0130.0166.79
4.4.60.0160.0166.79
4.4.50.0070.0156.80
4.4.40.0070.0206.77
4.4.30.0050.0156.79
4.4.20.0070.0156.84
4.4.10.0140.0126.84
4.4.00.0110.0246.79
4.3.110.0100.0116.75
4.3.100.0040.0136.75
4.3.90.0080.0156.73
4.3.80.0060.0206.71
4.3.70.0050.0176.73
4.3.60.0110.0156.73
4.3.50.0250.0146.73
4.3.40.0090.0266.69
4.3.30.0070.0186.07
4.3.20.0100.0156.05
4.3.10.0040.0146.04
4.3.00.0300.0208.84

preferences:
138.31 ms | 1394 KiB | 7 Q