3v4l.org

run code in 300+ PHP versions simultaneously
<?php function itemsasd(){ $args = array(); echo "Number of arguments: " . func_num_args() . "<br />"; for($i = 0 ; $i < func_num_args(); $i++) { echo "Argument $i = " . func_get_arg($i) . "<br />"; $args[i] = func_get_arg($i); } foreach($args as $arg){ echo $arg; } } itemsasd(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.0040.01116.88
8.3.50.0110.00916.56
8.3.40.0140.00418.46
8.3.30.0140.00018.89
8.3.20.0090.00018.70
8.3.10.0080.00018.93
8.3.00.0090.00019.26
8.2.180.0130.00616.63
8.2.170.0120.00422.96
8.2.160.0080.00818.91
8.2.150.0090.00024.18
8.2.140.0030.00524.66
8.2.130.0000.00726.16
8.2.120.0040.00420.82
8.2.110.0060.00322.17
8.2.100.0040.00817.71
8.2.90.0040.00417.88
8.2.80.0050.00318.73
8.2.70.0030.00517.63
8.2.60.0040.00417.50
8.2.50.0000.00818.03
8.2.40.0000.00819.48
8.2.30.0030.00617.86
8.2.20.0090.00017.69
8.2.10.0080.00017.76
8.2.00.0060.00417.88
8.1.280.0070.00725.92
8.1.270.0110.01123.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0040.00821.96
8.1.230.0030.00722.10
8.1.220.0050.00318.64
8.1.210.0050.00318.77
8.1.200.0000.00817.35
8.1.190.0050.00317.22
8.1.180.0030.00518.10
8.1.170.0040.00417.62
8.1.160.0030.00318.95
8.1.150.0000.00718.63
8.1.140.0040.00417.37
8.1.130.0050.00219.23
8.1.120.0000.00817.49
8.1.110.0040.00417.34
8.1.100.0000.00717.43
8.1.90.0000.00717.32
8.1.80.0040.00417.49
8.1.70.0040.00417.41
8.1.60.0080.00017.61
8.1.50.0040.00417.49
8.1.40.0040.00417.52
8.1.30.0030.00617.54
8.1.20.0060.00317.58
8.1.10.0030.00617.51
8.1.00.0080.00017.53
8.0.300.0070.00019.89
8.0.290.0030.00716.75
8.0.280.0070.00018.57
8.0.270.0000.00717.28
8.0.260.0000.00616.88
8.0.250.0040.00416.93
8.0.240.0040.00417.01
8.0.230.0030.00317.08
8.0.220.0000.00816.98
8.0.210.0030.00316.84
8.0.200.0000.00716.97
8.0.190.0050.00316.96
8.0.180.0050.00516.95
8.0.170.0040.00416.77
8.0.160.0040.00417.00
8.0.150.0040.00416.91
8.0.140.0050.00316.93
8.0.130.0000.00613.39
8.0.120.0040.00416.80
8.0.110.0000.00816.86
8.0.100.0030.00316.85
8.0.90.0000.00716.91
8.0.80.0100.00717.02
8.0.70.0080.00016.91
8.0.60.0060.00316.91
8.0.50.0030.00516.81
8.0.30.0070.01017.00
8.0.20.0130.01017.07
8.0.10.0090.00017.19
8.0.00.0120.01316.83
7.4.330.0030.00312.89
7.4.320.0030.00316.53
7.4.300.0030.00316.56
7.4.290.0030.00316.48
7.4.280.0030.00616.62
7.4.270.0030.00316.64
7.4.260.0000.00513.17
7.4.250.0080.00016.55
7.4.240.0000.00816.54
7.4.230.0060.00316.42
7.4.220.0070.01016.66
7.4.210.0030.01316.47
7.4.200.0000.00716.55
7.4.190.0040.00416.77
7.4.160.0120.00416.37
7.4.150.0030.01516.48
7.4.140.0070.01016.55
7.4.130.0120.00616.61
7.4.120.0130.00316.53
7.4.110.0060.01216.61
7.4.100.0130.01016.56
7.4.90.0090.00916.61
7.4.80.0120.00919.39
7.4.70.0080.00816.55
7.4.60.0100.00616.42
7.4.50.0060.00316.46
7.4.40.0090.00616.45
7.4.30.0140.00316.63
7.4.00.0040.01215.11
7.3.330.0020.00513.39
7.3.320.0070.00013.20
7.3.310.0000.00716.31
7.3.300.0020.00516.35
7.3.290.0100.00716.42
7.3.280.0070.01216.47
7.3.270.0140.01016.71
7.3.260.0000.02016.38
7.3.250.0100.01016.55
7.3.240.0100.01016.34
7.3.230.0140.00316.41
7.3.210.0100.00616.61
7.3.200.0070.01116.43
7.3.190.0060.01016.32
7.3.180.0110.00516.40
7.3.170.0170.00016.51
7.3.160.0120.00616.47
7.3.120.0070.00714.90
7.2.330.0090.00916.49
7.2.320.0100.01016.72
7.2.310.0120.00916.79
7.2.300.0130.00316.87
7.2.290.0060.01616.73
7.2.60.0070.01017.06
7.2.00.0040.00819.49
7.1.200.0120.00315.94
7.1.100.0450.01616.20
7.1.70.0070.00017.34
7.1.60.0140.01019.30
7.1.50.0100.01316.72
7.1.00.0030.03722.33
7.0.200.0030.00516.47
7.0.140.0030.06722.04
7.0.120.0070.06022.09
7.0.60.0100.08019.93
7.0.50.0070.08017.96
7.0.40.0170.03320.21
7.0.30.0500.03320.17
7.0.20.0300.08020.06
7.0.10.0070.04020.21
7.0.00.0030.04320.23
5.6.280.0070.07021.02
5.6.210.0000.08720.46
5.6.200.0070.08718.23
5.6.190.0100.05320.49
5.6.180.0300.07720.46
5.6.170.0330.04020.62
5.6.160.0130.07020.52
5.6.150.0070.03718.24
5.6.140.0030.04718.14
5.6.130.0100.08318.15
5.6.120.0070.08321.12
5.6.110.0000.04721.12
5.6.100.0100.08021.01
5.6.90.0070.08321.02
5.6.80.0130.05020.51
5.6.70.4100.04320.50
5.5.350.0300.04020.32
5.5.340.0100.07718.08
5.5.330.0130.06720.43
5.5.320.0330.04720.36
5.5.310.0300.04020.27
5.5.300.0070.07717.95
5.5.290.0100.06017.98
5.5.280.0070.04720.95
5.5.270.0170.07720.76
5.5.260.0070.08020.76
5.5.250.0100.07320.69
5.5.240.4230.03720.33
5.4.450.0030.05019.48
5.4.440.0100.04719.57
5.4.430.0130.06719.43
5.4.420.0130.04719.47
5.4.410.0030.08319.44
5.4.400.0030.04319.17
5.4.390.0130.07019.25
5.4.380.0030.05019.16
5.4.370.0070.07319.20
5.4.360.0100.03319.20
5.4.350.0130.04719.20
5.4.340.0170.06719.15
5.4.320.0100.03718.92
5.4.310.0070.06319.15
5.4.300.0170.03319.14
5.4.290.0000.07319.18
5.4.280.0130.06319.18
5.4.270.0070.07019.15
5.4.260.0100.06019.24
5.4.250.0070.03719.23
5.4.240.0070.03719.14
5.4.230.0000.04019.16
5.4.220.0100.03719.14
5.4.210.0030.03718.84
5.4.200.0070.03719.14
5.4.190.0070.03319.07
5.4.180.0070.03319.23
5.4.170.0000.04319.23
5.4.160.0070.03319.17
5.4.150.0130.03318.88
5.4.140.0100.03016.40
5.4.130.0030.03716.39
5.4.120.0100.03316.34
5.4.110.0030.03716.43
5.4.100.0030.03716.37
5.4.90.0100.03016.43
5.4.80.0070.03016.36
5.4.70.0000.03716.40
5.4.60.0030.03716.36
5.4.50.0000.03716.38
5.4.40.0100.02716.50
5.4.30.0000.03716.43
5.4.20.0070.03716.50
5.4.10.0100.03316.50
5.4.00.0030.03315.79
5.3.290.0070.05714.71
5.3.280.0000.04014.60
5.3.270.0000.04714.52
5.3.260.0070.03714.49
5.3.250.0070.03314.61
5.3.240.0070.03314.67
5.3.230.0170.03014.60
5.3.220.0070.03714.56
5.3.210.0070.03714.62
5.3.200.0100.03014.57
5.3.190.0030.04014.57
5.3.180.0100.03014.62
5.3.170.0100.03014.72
5.3.160.0030.03714.57
5.3.150.0000.04314.52
5.3.140.0070.03714.46
5.3.130.0100.03014.43
5.3.120.0070.03314.58
5.3.110.0070.03314.56
5.3.100.0000.04014.09
5.3.90.0030.03714.03
5.3.80.0030.03313.93
5.3.70.0000.04014.05
5.3.60.0030.03314.00
5.3.50.0000.03714.00
5.3.40.0000.04313.94
5.3.30.0030.03313.90
5.3.20.0000.03713.73
5.3.10.0070.04713.71
5.3.00.0000.06013.64
5.2.170.0000.03011.09
5.2.160.0030.02711.15
5.2.150.0000.03311.19
5.2.140.0100.02711.20
5.2.130.0000.04011.16
5.2.120.0000.03311.14
5.2.110.0070.02711.25
5.2.100.0100.04711.02
5.2.90.0030.05711.05
5.2.80.0070.03711.26
5.2.70.0030.03311.00
5.2.60.0000.04311.05
5.2.50.0030.05011.18
5.2.40.0030.03011.00
5.2.30.0030.03010.96
5.2.20.0030.06311.00
5.2.10.0070.05310.91
5.2.00.0000.05010.86
5.1.60.0030.0339.95
5.1.50.0000.0379.99
5.1.40.0030.03010.00
5.1.30.0070.04710.35
5.1.20.0130.05010.34
5.1.10.0030.05710.09
5.1.00.0130.04710.21
5.0.50.0070.0438.45
5.0.40.0100.0378.39
5.0.30.0070.0638.13
5.0.20.0000.0438.21
5.0.10.0070.0378.17
5.0.00.0030.0478.25
4.4.90.0070.0107.85
4.4.80.0070.0337.85
4.4.70.0030.0377.85
4.4.60.0100.0207.85
4.4.50.0030.0277.85
4.4.40.0000.0337.85
4.4.30.0000.0177.85
4.4.20.0030.0377.85
4.4.10.0000.0377.85
4.4.00.0000.0537.85
4.3.110.0030.0337.85
4.3.100.0030.0307.85
4.3.90.0000.0307.85
4.3.80.0000.0507.85
4.3.70.0100.0277.85
4.3.60.0070.0207.85
4.3.50.0000.0307.85
4.3.40.0000.0477.85
4.3.30.0030.0377.85
4.3.20.0030.0337.85
4.3.10.0000.0307.85
4.3.00.0070.0237.85

preferences:
52.97 ms | 401 KiB | 5 Q