3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { function test($a, $b, $c) { var_dump(array_map('extract', [['res' => 123]])); var_dump($res); } 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.0080.00616.50
8.3.50.0110.00416.25
8.3.40.0040.01118.79
8.3.30.0120.00318.46
8.3.20.0070.00020.29
8.3.10.0040.00421.87
8.3.00.0080.00023.40
8.2.180.0140.00716.75
8.2.170.0100.01022.96
8.2.160.0070.00720.43
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0000.00821.18
8.2.120.0070.00026.35
8.2.110.0100.00019.31
8.2.100.0040.00817.80
8.2.90.0040.00419.08
8.2.80.0000.00817.97
8.2.70.0060.00317.63
8.2.60.0000.00817.91
8.2.50.0000.01218.09
8.2.40.0050.00322.12
8.2.30.0020.00519.43
8.2.20.0000.00717.73
8.2.10.0000.00718.06
8.2.00.0000.00717.98
8.1.280.0040.01125.92
8.1.270.0040.00423.99
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00322.45
8.1.230.0040.00717.47
8.1.220.0090.00017.74
8.1.210.0040.00418.77
8.1.200.0050.00517.23
8.1.190.0030.00617.11
8.1.180.0080.00018.10
8.1.170.0060.00318.52
8.1.160.0000.00720.63
8.1.150.0030.00318.90
8.1.140.0000.00819.55
8.1.130.0040.00417.48
8.1.120.0030.00517.30
8.1.110.0040.00417.39
8.1.100.0000.00717.31
8.1.90.0000.00817.24
8.1.80.0030.00317.33
8.1.70.0030.00317.30
8.1.60.0040.00417.41
8.1.50.0000.00817.43
8.1.40.0000.00717.46
8.1.30.0000.00817.56
8.1.20.0070.00017.65
8.1.10.0000.00817.52
8.1.00.0040.00417.36
8.0.300.0000.00718.77
8.0.290.0040.00716.58
8.0.280.0030.00518.38
8.0.270.0030.00317.07
8.0.260.0000.00617.12
8.0.250.0080.00016.95
8.0.240.0080.00016.89
8.0.230.0040.00416.96
8.0.220.0060.00016.79
8.0.210.0000.00816.82
8.0.200.0000.00616.94
8.0.190.0000.01116.82
8.0.180.0070.00016.80
8.0.170.0070.00716.88
8.0.160.0070.00016.91
8.0.150.0000.00716.80
8.0.140.0000.00716.76
8.0.130.0030.00313.35
8.0.120.0000.00816.83
8.0.110.0000.00716.80
8.0.100.0050.00216.96
8.0.90.0040.00416.89
8.0.80.0070.00716.87
8.0.70.0070.00016.82
8.0.60.0020.00516.85
8.0.50.0040.00416.93
8.0.30.0160.00217.05
8.0.20.0080.01217.40
8.0.10.0070.00016.77
8.0.00.0060.01416.72
7.4.330.0050.00016.66
7.4.320.0030.00316.41
7.4.300.0000.00816.53
7.4.290.0000.00716.55
7.4.280.0000.00816.53
7.4.270.0030.00516.54
7.4.260.0000.00616.43
7.4.250.0000.00816.53
7.4.240.0000.00716.43
7.4.230.0030.00316.44
7.4.220.0000.01716.48
7.4.210.0070.00916.46
7.4.200.0000.00716.50
7.4.160.0080.01116.49
7.4.150.0130.00417.40
7.4.140.0080.01317.86
7.4.130.0150.00716.50
7.4.120.0150.00216.43
7.4.110.0140.00416.48
7.4.100.0140.00516.53
7.4.90.0100.01016.49
7.4.80.0090.00919.39
7.4.70.0110.00516.45
7.4.60.0070.01016.43
7.4.50.0000.01416.61
7.4.40.0090.00916.51
7.4.30.0030.01616.54
7.4.00.0060.00914.80
7.3.330.0040.00313.16
7.3.320.0030.00313.29
7.3.310.0000.00716.34
7.3.300.0000.00716.30
7.3.290.0030.00316.29
7.3.280.0110.00816.26
7.3.270.0120.00617.40
7.3.260.0100.00716.28
7.3.250.0090.00816.40
7.3.240.0120.00516.46
7.3.230.0070.01016.39
7.3.210.0100.00716.42
7.3.200.0000.01519.39
7.3.190.0060.01016.29
7.3.180.0110.00816.49
7.3.170.0140.00716.36
7.3.160.0110.00516.31
7.2.330.0110.00616.63
7.2.320.0170.00316.59
7.2.310.0110.00616.68
7.2.300.0120.00416.21
7.2.290.0070.01116.46
7.2.60.0070.00716.74
7.2.00.0040.01419.34
7.1.200.0030.01015.75
7.1.100.0100.00617.75
7.1.70.0040.00817.02
7.1.60.0030.00919.40
7.1.50.0030.00916.76
7.1.00.0000.08022.26
7.0.200.0490.00714.60
7.0.60.0200.04321.72
7.0.50.0070.05317.88
7.0.40.0030.04320.27
7.0.30.0370.06720.24
7.0.20.0200.07320.07
7.0.10.0070.07320.33
7.0.00.0070.06720.29
5.6.280.0030.03320.98
5.6.210.0070.03720.45
5.6.200.0130.04718.29
5.6.190.0070.08320.41
5.6.180.0130.04720.47
5.6.170.0370.04320.50
5.6.160.0100.06020.46
5.6.150.0130.04018.25
5.6.140.0000.08318.11
5.6.130.0030.04018.27
5.6.120.0000.04321.00
5.6.110.0230.06720.86
5.6.100.0030.04021.12
5.6.90.0100.07021.08
5.6.80.0100.06320.38
5.5.350.0000.04320.52
5.5.340.0100.07318.02
5.5.330.0030.04320.26
5.5.320.0600.07320.20
5.5.310.0270.06320.24
5.5.300.0000.07717.95
5.5.290.0070.08017.97
5.5.280.0200.05020.66
5.5.270.0070.08720.80
5.5.260.0070.07720.77
5.5.250.0070.07320.69
5.5.240.0200.07320.27

preferences:
58.74 ms | 400 KiB | 5 Q