3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { function test($a, $b, $c) { var_dump(array_map('extract', [['res' => 123], []])); } test(1, 2, 3); } /*namespace { function test($a, $b, $c) { var_dump(call_user_func('func_get_args')); var_dump(call_user_func('get_defined_vars')); } test(1, 2, 3); }*/

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)
8.3.60.0070.01418.68
8.3.50.0110.00721.20
8.3.40.0120.00318.73
8.3.30.0060.00918.54
8.3.20.0000.00720.22
8.3.10.0040.00421.94
8.3.00.0070.00021.89
8.2.180.0070.01018.66
8.2.170.0100.00622.96
8.2.160.0130.00020.52
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00421.06
8.2.120.0040.00426.35
8.2.110.0000.00819.21
8.2.100.0090.00317.80
8.2.90.0040.00419.16
8.2.80.0090.00017.97
8.2.70.0000.00917.48
8.2.60.0040.00417.91
8.2.50.0040.00418.09
8.2.40.0040.00422.38
8.2.30.0050.00319.26
8.2.20.0050.00217.77
8.2.10.0080.00017.94
8.2.00.0000.00817.99
8.1.280.0060.01225.92
8.1.270.0130.00722.14
8.1.260.0070.00028.09
8.1.250.0070.00028.09
8.1.240.0040.00422.46
8.1.230.0110.00017.77
8.1.220.0090.00017.74
8.1.210.0060.00318.77
8.1.200.0000.00917.23
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0030.00618.50
8.1.160.0070.00020.55
8.1.150.0000.00818.99
8.1.140.0030.00619.45
8.1.130.0000.00717.45
8.1.120.0050.00317.26
8.1.110.0040.00417.27
8.1.100.0040.00417.33
8.1.90.0080.00017.34
8.1.80.0040.00417.36
8.1.70.0040.00417.34
8.1.60.0040.00417.44
8.1.50.0000.00817.36
8.1.40.0020.00517.38
8.1.30.0040.00417.55
8.1.20.0050.00317.55
8.1.10.0040.00417.54
8.1.00.0050.00217.51
8.0.300.0070.00018.77
8.0.290.0060.00316.63
8.0.280.0030.00318.41
8.0.270.0000.00717.25
8.0.260.0060.00017.19
8.0.250.0030.00316.88
8.0.240.0070.00016.96
8.0.230.0030.00316.96
8.0.220.0070.00016.80
8.0.210.0050.00316.89
8.0.200.0000.00617.00
8.0.190.0110.00017.00
8.0.180.0000.00916.96
8.0.170.0030.00916.92
8.0.160.0000.00716.87
8.0.150.0070.00016.86
8.0.140.0050.00316.89
8.0.130.0000.00513.41
8.0.120.0030.00616.90
8.0.110.0030.00416.79
8.0.100.0040.00416.70
8.0.90.0050.00316.81
8.0.80.0080.00716.95
8.0.70.0000.00716.79
8.0.60.0030.00516.88
8.0.50.0040.00416.70
8.0.30.0100.00616.94
8.0.20.0110.00717.40
8.0.10.0040.00417.05
8.0.00.0070.01116.64
7.4.330.0000.00516.77
7.4.320.0060.00016.25
7.4.300.0070.00016.44
7.4.290.0040.00416.45
7.4.280.0040.00416.51
7.4.270.0030.00316.51
7.4.260.0030.00616.36
7.4.250.0080.00016.50
7.4.240.0000.00716.44
7.4.230.0080.00016.25
7.4.220.0100.01416.41
7.4.210.0090.00916.41
7.4.200.0000.00716.26
7.4.160.0030.01216.32
7.4.150.0060.01217.40
7.4.140.0110.01117.86
7.4.130.0070.01016.56
7.4.120.0130.00516.46
7.4.110.0110.00716.54
7.4.100.0110.00716.48
7.4.90.0100.01016.19
7.4.80.0070.01019.39
7.4.70.0100.00716.62
7.4.60.0110.00816.39
7.4.50.0070.00716.43
7.4.40.0110.00616.18
7.4.30.0070.01316.39
7.4.00.0110.00715.09
7.3.330.0000.00713.09
7.3.320.0000.00613.30
7.3.310.0040.00416.21
7.3.300.0000.00716.29
7.3.290.0070.00016.31
7.3.280.0100.00716.33
7.3.270.0040.01217.40
7.3.260.0110.00716.60
7.3.250.0120.00616.35
7.3.240.0120.00516.51
7.3.230.0090.00916.54
7.3.210.0100.00716.39
7.3.200.0060.00919.39
7.3.190.0070.01016.41
7.3.180.0130.00316.54
7.3.170.0110.01116.27
7.3.160.0080.00816.35
7.3.120.0070.01014.79
7.3.110.0090.01014.64
7.3.100.0130.00314.33
7.3.90.0040.01214.96
7.3.80.0100.00714.63
7.3.70.0060.00914.73
7.3.60.0130.00014.66
7.3.50.0060.00614.51
7.3.40.0040.01114.77
7.3.30.0060.00614.77
7.3.20.0080.00816.44
7.3.10.0110.00616.55
7.3.00.0080.00816.40
7.2.330.0130.00416.43
7.2.320.0100.01516.36
7.2.310.0110.00616.32
7.2.300.0060.01216.71
7.2.290.0090.00916.57
7.2.250.0160.00315.07
7.2.240.0100.01014.72
7.2.230.0120.00314.62
7.2.220.0030.00615.00
7.2.210.0120.00415.18
7.2.200.0070.00715.09
7.2.190.0060.00315.00
7.2.180.0070.00715.05
7.2.170.0060.01014.94
7.2.130.0120.00416.66
7.2.120.0060.00616.59
7.2.110.0080.00316.62
7.2.100.0030.01316.36
7.2.90.0070.00316.56
7.2.80.0130.00016.41
7.2.70.0100.01016.61
7.2.60.0090.00516.55
7.2.50.0090.00616.29
7.2.40.0060.00916.59
7.2.30.0030.01316.39
7.2.20.0080.01116.68
7.2.10.0100.01016.45
7.2.00.0010.01018.08
7.1.330.0000.01415.77
7.1.320.0000.01015.54
7.1.310.0070.00715.59
7.1.300.0060.01015.31
7.1.290.0040.00715.36
7.1.280.0070.00415.50
7.1.270.0090.00415.41
7.1.260.0030.01015.84
7.1.250.0110.00415.54
7.1.200.0030.00915.50
7.1.100.0060.00917.88
7.1.70.0030.00517.15
7.1.60.0130.01019.40
7.1.50.0120.00316.70
7.1.00.0070.07322.31
7.0.200.0640.00714.61
7.0.60.0070.04721.83
7.0.50.0070.07317.85
7.0.40.0130.06720.23
7.0.30.0370.05020.10
7.0.20.0330.07320.08
7.0.10.0170.07720.21
7.0.00.0000.04720.25
5.6.280.0000.03321.00
5.6.210.0000.04320.62
5.6.200.0000.08718.25
5.6.190.0070.04320.52
5.6.180.0230.03720.64
5.6.170.0330.06020.71
5.6.160.0070.06020.55
5.6.150.0100.07718.16
5.6.140.0100.05018.23
5.6.130.0030.05318.16
5.6.120.0000.04320.99
5.6.110.0100.08321.15
5.6.100.0100.03320.89
5.6.90.0130.08021.00
5.6.80.0070.06020.37
5.5.350.0000.08720.44
5.5.340.0030.04717.98
5.5.330.0100.05720.36
5.5.320.0530.07320.27
5.5.310.0200.07320.27
5.5.300.0130.08017.93
5.5.290.0200.06018.07
5.5.280.0070.07320.68
5.5.270.0100.08020.76
5.5.260.0230.07320.64
5.5.250.0100.07720.62
5.5.240.0100.04320.27

preferences:
52.08 ms | 401 KiB | 5 Q