3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { function test($a, $b, $c) { var_dump(array_map('extract', [['res' => 123, 'k' => 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.0000.01416.75
8.3.50.0140.00418.08
8.3.40.0070.00718.93
8.3.30.0060.00918.80
8.3.20.0040.00420.35
8.3.10.0000.00721.73
8.3.00.0050.00221.91
8.2.180.0090.00918.54
8.2.170.0140.00022.96
8.2.160.0100.00320.44
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00421.05
8.2.120.0080.00026.35
8.2.110.0060.00322.26
8.2.100.0080.00418.04
8.2.90.0050.00319.05
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0060.00319.41
8.2.50.0110.00018.09
8.2.40.0040.00422.19
8.2.30.0040.00419.26
8.2.20.0050.00217.79
8.2.10.0000.00817.97
8.2.00.0030.00617.92
8.1.280.0120.00925.92
8.1.270.0140.00322.05
8.1.260.0070.00028.09
8.1.250.0000.00728.09
8.1.240.0030.00623.84
8.1.230.0070.00320.97
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.10
8.1.190.0000.00817.10
8.1.180.0080.00018.10
8.1.170.0040.00718.61
8.1.160.0070.00020.56
8.1.150.0020.00518.96
8.1.140.0040.00419.45
8.1.130.0070.00017.58
8.1.120.0030.00317.30
8.1.110.0040.00417.37
8.1.100.0000.00817.36
8.1.90.0040.00417.24
8.1.80.0070.00017.31
8.1.70.0000.00717.27
8.1.60.0000.00917.52
8.1.50.0040.00417.42
8.1.40.0050.00217.49
8.1.30.0030.00617.58
8.1.20.0040.00417.59
8.1.10.0040.00417.43
8.1.00.0040.00417.43
8.0.300.0070.00018.77
8.0.290.0060.00316.63
8.0.280.0000.00718.40
8.0.270.0030.00317.21
8.0.260.0000.00617.25
8.0.250.0000.00717.02
8.0.240.0040.00416.98
8.0.230.0000.00716.98
8.0.220.0040.00416.76
8.0.210.0000.00716.87
8.0.200.0000.00816.95
8.0.190.0070.00416.96
8.0.180.0040.00416.82
8.0.170.0000.01317.00
8.0.160.0040.00416.87
8.0.150.0040.00416.96
8.0.140.0050.00216.69
8.0.130.0050.00013.25
8.0.120.0030.00516.84
8.0.110.0040.00416.88
8.0.100.0080.00016.85
8.0.90.0000.00716.94
8.0.80.0040.01116.92
8.0.70.0000.00716.83
8.0.60.0070.00016.94
8.0.50.0040.00416.82
8.0.30.0060.01117.14
8.0.20.0160.00717.40
8.0.10.0000.00717.02
8.0.00.0080.01016.67
7.4.330.0000.00516.69
7.4.320.0060.00016.38
7.4.300.0040.00416.50
7.4.290.0070.00016.37
7.4.280.0000.00816.53
7.4.270.0000.00716.49
7.4.260.0030.00316.35
7.4.250.0080.00016.51
7.4.240.0020.00516.46
7.4.230.0000.00716.64
7.4.220.0070.01016.40
7.4.210.0080.01216.47
7.4.200.0000.00716.48
7.4.160.0070.01316.18
7.4.150.0100.00717.40
7.4.140.0130.01417.86
7.4.130.0130.00816.47
7.4.120.0100.00816.48
7.4.110.0120.00616.35
7.4.100.0110.00716.59
7.4.90.0110.00816.40
7.4.80.0070.01019.39
7.4.70.0110.00716.57
7.4.60.0120.00616.32
7.4.50.0030.01316.38
7.4.40.0100.00616.39
7.4.30.0150.00616.30
7.4.00.0070.00914.94
7.3.330.0000.00613.29
7.3.320.0050.00013.31
7.3.310.0000.00716.33
7.3.300.0040.00416.33
7.3.290.0030.00316.17
7.3.280.0110.00816.28
7.3.270.0200.00317.40
7.3.260.0090.00916.51
7.3.250.0120.00816.24
7.3.240.0060.01116.40
7.3.230.0070.01016.39
7.3.210.0080.00816.48
7.3.200.0000.01619.39
7.3.190.0100.01316.35
7.3.180.0110.00516.41
7.3.170.0080.01116.33
7.3.160.0060.00916.24
7.3.120.0030.01314.66
7.3.110.0100.00714.79
7.3.100.0030.01014.79
7.3.90.0030.00714.85
7.3.80.0110.00314.82
7.3.70.0080.00014.60
7.3.60.0130.00314.79
7.3.50.0070.00714.79
7.3.40.0090.00014.61
7.3.30.0070.00714.40
7.3.20.0060.01016.52
7.3.10.0040.01416.75
7.3.00.0140.00016.70
7.2.330.0090.01616.59
7.2.320.0070.01716.55
7.2.310.0090.00616.33
7.2.300.0130.00416.61
7.2.290.0130.00316.57
7.2.250.0090.00914.62
7.2.240.0030.01614.81
7.2.230.0030.01215.03
7.2.220.0070.00715.00
7.2.210.0090.00314.80
7.2.200.0120.00314.54
7.2.190.0000.01414.89
7.2.180.0030.01314.82
7.2.170.0060.01015.03
7.2.60.0060.00616.80
7.2.00.0060.00919.06
7.1.330.0090.00315.57
7.1.320.0090.00615.53
7.1.310.0070.00715.53
7.1.300.0030.01015.57
7.1.290.0000.01215.46
7.1.280.0040.01115.28
7.1.270.0040.01415.60
7.1.260.0070.00315.66
7.1.200.0040.01115.57
7.1.100.0090.00617.71
7.1.70.0030.01216.99
7.1.60.0120.01219.40
7.1.50.0000.01616.80
7.1.00.0000.08022.34
7.0.200.0840.00714.70
7.0.60.0070.03721.75
7.0.50.0130.05317.98
7.0.40.0030.05020.05
7.0.30.0300.07720.28
7.0.20.0330.08320.12
7.0.10.0070.08320.14
7.0.00.0030.04020.27
5.6.280.0000.06021.12
5.6.210.0030.04020.61
5.6.200.0000.06018.12
5.6.190.0030.06720.48
5.6.180.0100.05020.61
5.6.170.0430.05720.52
5.6.160.0100.06720.57
5.6.150.0000.04318.29
5.6.140.0070.08318.14
5.6.130.0030.06018.17
5.6.120.0000.06021.02
5.6.110.0070.08021.03
5.6.100.0070.05321.14
5.6.90.0030.08721.08
5.6.80.0200.04720.51
5.5.350.0030.08020.39
5.5.340.0030.08318.05
5.5.330.0030.04320.40
5.5.320.0470.04020.34
5.5.310.0100.05720.34
5.5.300.0070.07718.04
5.5.290.0130.06717.95
5.5.280.0070.08320.85
5.5.270.0030.04720.98
5.5.260.0100.08020.87
5.5.250.0200.05720.61
5.5.240.0100.04720.27

preferences:
53.84 ms | 400 KiB | 5 Q