3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { function test($a, $b, $c) { var_dump(array_map('extract', [['res' => 123]], [['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.0090.00916.73
8.3.50.0050.01421.11
8.3.40.0120.00318.96
8.3.30.0110.00418.67
8.3.20.0030.00320.25
8.3.10.0040.00421.73
8.3.00.0050.00221.73
8.2.180.0070.00718.04
8.2.170.0120.00622.96
8.2.160.0100.00320.34
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00021.12
8.2.120.0040.00426.35
8.2.110.0060.00319.13
8.2.100.0110.00017.90
8.2.90.0030.00519.04
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0050.00317.91
8.2.50.0110.00018.09
8.2.40.0000.00922.32
8.2.30.0040.00419.30
8.2.20.0070.00017.75
8.2.10.0050.00317.90
8.2.00.0020.00518.00
8.1.280.0000.01525.92
8.1.270.0060.01222.14
8.1.260.0050.00328.09
8.1.250.0000.00728.09
8.1.240.0100.00722.48
8.1.230.0040.00717.64
8.1.220.0020.00517.74
8.1.210.0060.00318.77
8.1.200.0050.00517.35
8.1.190.0050.00317.11
8.1.180.0080.00018.10
8.1.170.0000.01018.55
8.1.160.0070.00020.65
8.1.150.0050.00319.02
8.1.140.0030.00519.37
8.1.130.0040.00417.58
8.1.120.0000.00717.36
8.1.110.0040.00417.39
8.1.100.0050.00217.26
8.1.90.0020.00517.28
8.1.80.0050.00217.32
8.1.70.0070.00017.25
8.1.60.0050.00217.45
8.1.50.0030.00617.50
8.1.40.0050.00317.46
8.1.30.0040.00417.60
8.1.20.0000.00717.50
8.1.10.0060.00317.49
8.1.00.0000.00717.35
8.0.300.0040.00418.84
8.0.290.0000.00716.75
8.0.280.0000.00718.50
8.0.270.0030.00317.22
8.0.260.0030.00317.25
8.0.250.0000.00716.96
8.0.240.0080.00016.88
8.0.230.0070.00016.96
8.0.220.0000.00716.82
8.0.210.0040.00416.86
8.0.200.0030.00316.88
8.0.190.0040.00717.03
8.0.180.0040.00416.88
8.0.170.0090.00316.85
8.0.160.0000.00716.79
8.0.150.0070.00016.91
8.0.140.0040.00416.85
8.0.130.0030.00313.33
8.0.120.0030.00616.90
8.0.110.0040.00416.95
8.0.100.0080.00016.72
8.0.90.0000.00816.90
8.0.80.0030.01116.87
8.0.70.0040.00416.77
8.0.60.0050.00216.86
8.0.50.0040.00416.96
8.0.30.0110.00716.97
8.0.20.0100.01017.40
8.0.10.0070.00016.95
8.0.00.0100.00816.82
7.4.330.0030.00316.74
7.4.320.0030.00316.50
7.4.300.0000.00816.42
7.4.290.0030.00316.54
7.4.280.0020.00516.53
7.4.270.0000.00816.36
7.4.260.0040.00416.52
7.4.250.0040.00416.39
7.4.240.0030.00316.55
7.4.230.0070.00016.52
7.4.220.0070.01016.43
7.4.210.0050.01016.55
7.4.200.0000.00716.65
7.4.160.0090.00916.46
7.4.150.0070.01117.40
7.4.140.0090.01017.86
7.4.130.0130.00516.44
7.4.120.0080.01116.51
7.4.110.0090.00916.35
7.4.100.0090.00916.23
7.4.90.0070.01116.53
7.4.80.0060.01019.39
7.4.70.0060.01516.50
7.4.60.0040.01116.29
7.4.50.0070.00716.51
7.4.40.0130.00316.43
7.4.30.0060.01316.40
7.4.10.0110.00715.08
7.4.00.0090.00714.92
7.3.330.0000.00613.23
7.3.320.0030.00313.27
7.3.310.0040.00416.33
7.3.300.0000.00716.30
7.3.290.0030.00316.19
7.3.280.0070.01116.27
7.3.270.0060.01217.40
7.3.260.0140.00916.43
7.3.250.0070.01216.41
7.3.240.0060.01216.36
7.3.230.0000.01716.47
7.3.210.0080.00816.41
7.3.200.0100.00719.39
7.3.190.0060.01416.24
7.3.180.0030.01316.23
7.3.170.0130.00916.30
7.3.160.0030.01416.33
7.3.130.0110.00314.83
7.3.120.0070.01014.62
7.3.110.0030.01514.46
7.3.100.0000.01414.84
7.3.90.0130.00014.69
7.3.80.0060.00314.82
7.3.70.0100.00714.88
7.3.60.0070.00714.66
7.3.50.0070.00714.71
7.3.40.0060.00914.65
7.3.30.0070.00714.80
7.3.20.0050.00516.69
7.3.10.0050.00916.34
7.3.00.0030.00716.52
7.2.330.0100.00716.51
7.2.320.0130.00716.30
7.2.310.0110.00616.29
7.2.300.0070.01016.48
7.2.290.0120.00416.60
7.2.260.0040.01515.14
7.2.250.0030.01414.89
7.2.240.0030.01015.20
7.2.230.0040.01115.16
7.2.220.0100.00714.87
7.2.210.0060.00615.02
7.2.200.0060.01014.84
7.2.190.0040.00714.99
7.2.180.0080.00414.76
7.2.170.0030.00614.84
7.2.160.0060.00314.76
7.2.150.0080.00816.57
7.2.140.0030.00616.61
7.2.130.0080.00416.80
7.2.120.0100.00716.75
7.2.110.0040.00916.75
7.2.100.0100.00716.75
7.2.90.0070.00716.44
7.2.80.0060.00916.54
7.2.70.0110.00616.68
7.2.60.0080.00616.81
7.2.50.0100.00516.72
7.2.40.0030.01216.71
7.2.30.0070.00916.71
7.2.20.0080.00516.64
7.2.10.0080.00816.75
7.2.00.0050.00817.45
7.1.330.0030.01015.57
7.1.320.0110.00315.69
7.1.310.0040.01215.74
7.1.300.0030.00715.51
7.1.290.0070.00715.46
7.1.280.0070.00715.60
7.1.270.0040.01115.42
7.1.260.0060.00615.66
7.1.250.0060.00715.64
7.1.240.0040.01115.75
7.1.230.0030.00715.61
7.1.220.0060.00915.39
7.1.210.0060.00615.45
7.1.200.0060.00715.61
7.1.190.0030.01015.70
7.1.180.0100.00315.60
7.1.170.0000.01715.52
7.1.160.0060.01015.72
7.1.150.0040.00815.77
7.1.140.0060.00615.42
7.1.130.0140.00015.83
7.1.120.0090.00915.66
7.1.110.0060.00615.67
7.1.100.0080.00616.94
7.1.90.0070.01315.55
7.1.80.0100.00315.64
7.1.70.0020.00916.26
7.1.60.0090.00617.59
7.1.50.0050.00616.09
7.1.40.0030.00715.36
7.1.30.0060.00915.72
7.1.20.0030.00915.67
7.1.10.0040.00815.68
7.1.00.0070.04019.01
7.0.330.0090.00615.50
7.0.320.0040.01115.31
7.0.310.0090.00615.37
7.0.300.0090.00315.38
7.0.290.0030.01315.33
7.0.280.0070.00715.48
7.0.270.0000.01315.12
7.0.260.0030.00915.30
7.0.250.0040.00815.43
7.0.240.0030.01015.48
7.0.230.0090.00915.51
7.0.220.0000.01615.16
7.0.210.0080.00415.43
7.0.200.0170.00514.99
7.0.190.0070.00715.30
7.0.180.0060.00615.46
7.0.170.0060.00315.27
7.0.160.0060.00315.28
7.0.150.0070.00715.21
7.0.140.0000.00915.27
7.0.130.0070.00415.27
7.0.120.0070.00715.28
7.0.110.0040.00815.35
7.0.100.0030.00915.54
7.0.90.0090.00615.39
7.0.80.0050.00514.99
7.0.70.0080.00815.47
7.0.60.0080.02418.40
7.0.50.0080.03816.61
7.0.40.0000.04216.90
7.0.30.0190.04016.83
7.0.20.0180.04216.67
7.0.10.0080.04116.77
7.0.00.0070.02316.79
5.6.400.0060.00914.38
5.6.390.0000.01514.22
5.6.380.0040.00414.05
5.6.370.0030.01114.32
5.6.360.0030.00713.80
5.6.350.0060.01014.18
5.6.340.0040.00813.94
5.6.330.0030.01414.13
5.6.320.0080.00014.34
5.6.310.0060.00914.37
5.6.300.0100.00014.19
5.6.290.0090.00013.98
5.6.280.0050.01817.66
5.6.270.0130.00014.35
5.6.260.0080.00814.24
5.6.250.0110.00713.92
5.6.240.0070.01013.96
5.6.230.0070.00714.20
5.6.220.0060.00914.31
5.6.210.0020.02617.41
5.6.200.0130.03516.05
5.6.190.0040.03617.39
5.6.180.0120.02617.49
5.6.170.0160.02317.17
5.6.160.0100.03317.34
5.6.150.0030.04716.01
5.6.140.0080.04316.08
5.6.130.0030.02516.33
5.6.120.0030.02517.58
5.6.110.0100.04617.47
5.6.100.0110.02017.54
5.6.90.0030.03417.57
5.6.80.0110.02417.48
5.6.70.0090.00614.15
5.6.60.0030.01013.93
5.6.50.0040.00414.25
5.6.40.0100.00314.03
5.6.30.0070.00413.83
5.6.20.0000.00914.36
5.6.10.0110.00714.22
5.6.00.0040.00814.05
5.5.380.0100.00314.04
5.5.370.0090.00914.25
5.5.360.0040.00713.97
5.5.350.0080.02117.18
5.5.340.0060.03316.29
5.5.330.0060.02817.20
5.5.320.0300.04217.21
5.5.310.0150.03017.28
5.5.300.0060.04516.09
5.5.290.0120.04216.05
5.5.280.0070.03017.48
5.5.270.0080.04317.33
5.5.260.0070.03817.58
5.5.250.0120.03817.36
5.5.240.0110.04117.12
5.5.230.0090.00613.81
5.5.220.0000.00813.99
5.5.210.0060.00914.13
5.5.200.0060.00613.94
5.5.190.0060.00613.81
5.5.180.0060.00914.10
5.5.170.0040.01114.00
5.5.160.0030.01013.93
5.5.150.0140.00414.19
5.5.140.0040.00414.16
5.5.130.0030.00714.10
5.5.120.0040.01114.10
5.5.110.0030.00613.96
5.5.100.0060.00614.24
5.5.90.0030.01314.20
5.5.80.0060.00613.64
5.5.70.0060.00614.25
5.5.60.0100.01014.08
5.5.50.0040.01514.06
5.5.40.0070.01014.15
5.5.30.0030.01514.12
5.5.20.0030.00913.61
5.5.10.0030.00914.01
5.5.00.0040.00413.79

preferences:
54.67 ms | 401 KiB | 5 Q