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.0130.00318.43
8.3.50.0120.00821.99
8.3.40.0140.00018.93
8.3.30.0070.00718.85
8.3.20.0040.00418.81
8.3.10.0050.00319.43
8.3.00.0040.00423.39
8.2.180.0120.00916.63
8.2.170.0100.01022.96
8.2.160.0000.01420.38
8.2.150.0090.00024.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00419.44
8.2.110.0060.00322.26
8.2.100.0040.00817.84
8.2.90.0080.00019.22
8.2.80.0080.00017.97
8.2.70.0000.00917.50
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0050.00318.22
8.2.30.0000.00721.20
8.2.20.0040.00417.60
8.2.10.0020.00517.81
8.2.00.0040.00417.80
8.1.270.0040.00423.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0000.01022.42
8.1.230.0000.01220.79
8.1.220.0000.00818.77
8.1.210.0000.00818.92
8.1.200.0050.00517.35
8.1.190.0040.00417.52
8.1.180.0000.00818.10
8.1.170.0040.00418.58
8.1.160.0040.00418.84
8.1.150.0040.00418.63
8.1.140.0040.00417.45
8.1.130.0040.00417.83
8.1.120.0040.00417.53
8.1.110.0000.00817.45
8.1.100.0000.00717.51
8.1.90.0040.00417.48
8.1.80.0040.00417.45
8.1.70.0030.00317.36
8.1.60.0080.00017.47
8.1.50.0000.00717.51
8.1.40.0000.00917.54
8.1.30.0000.00817.63
8.1.20.0040.00417.60
8.1.10.0060.00317.58
8.1.00.0060.00317.44
8.0.300.0000.00719.90
8.0.290.0000.00816.63
8.0.280.0000.00718.35
8.0.270.0000.01017.17
8.0.260.0030.00316.86
8.0.250.0000.01017.08
8.0.240.0060.00316.93
8.0.230.0070.00017.04
8.0.220.0070.00016.86
8.0.210.0040.00417.02
8.0.200.0060.00017.02
8.0.190.0030.00317.08
8.0.180.0040.00416.94
8.0.170.0080.00016.85
8.0.160.0040.00417.04
8.0.150.0000.00716.80
8.0.140.0050.00316.87
8.0.130.0000.00513.36
8.0.120.0040.00416.88
8.0.110.0000.00716.83
8.0.100.0040.00416.91
8.0.90.0070.00017.00
8.0.80.0110.01116.84
8.0.70.0000.00817.05
8.0.60.0020.00516.91
8.0.50.0040.00416.81
8.0.30.0130.00617.25
8.0.20.0090.01017.41
8.0.10.0040.00416.98
8.0.00.0090.00816.97
7.4.330.0050.00014.83
7.4.320.0000.00716.52
7.4.300.0000.00616.46
7.4.290.0030.00316.48
7.4.280.0030.00316.59
7.4.270.0030.00616.59
7.4.260.0030.00313.21
7.4.250.0020.00516.45
7.4.240.0070.00016.41
7.4.230.0070.00016.58
7.4.220.0170.00716.47
7.4.210.0080.01016.57
7.4.200.0000.00716.68
7.4.190.0030.00316.56
7.4.160.0060.00916.32
7.4.150.0180.00317.40
7.4.140.0110.00917.86
7.4.130.0090.00916.48
7.4.120.0030.01516.54
7.4.110.0120.00616.43
7.4.100.0120.00916.62
7.4.90.0060.01116.59
7.4.80.0100.00719.39
7.4.70.0060.01216.59
7.4.60.0060.01116.59
7.4.50.0000.00916.45
7.4.40.0120.00322.52
7.4.30.0000.01716.45
7.4.00.0050.00814.81
7.3.330.0000.00513.39
7.3.320.0060.00013.18
7.3.310.0000.00716.46
7.3.300.0070.00016.47
7.3.290.0040.01116.41
7.3.280.0090.00616.47
7.3.270.0000.01617.40
7.3.260.0090.01718.24
7.3.250.0140.00616.62
7.3.240.0040.01216.55
7.3.230.0090.00916.45
7.3.210.0100.01316.36
7.3.200.0060.00919.39
7.3.190.0110.00616.63
7.3.180.0060.01216.39
7.3.170.0140.00816.34
7.3.160.0100.00616.44
7.3.120.0080.01014.93
7.3.110.0070.00814.94
7.3.100.0050.01014.89
7.3.90.0120.00114.93
7.3.80.0090.00714.87
7.3.70.0070.00714.83
7.3.60.0050.00714.87
7.3.50.0040.01114.90
7.3.40.0060.00814.73
7.3.30.0060.00514.71
7.3.20.0090.00416.63
7.3.10.0090.00316.68
7.3.00.0080.00616.58
7.2.330.0090.00916.67
7.2.320.0030.01316.57
7.2.310.0230.00016.46
7.2.300.0060.01516.79
7.2.290.0030.01316.59
7.2.250.0030.01015.05
7.2.240.0020.01615.01
7.2.230.0020.01115.20
7.2.220.0040.00814.90
7.2.210.0110.00515.17
7.2.200.0050.00914.99
7.2.190.0070.00514.94
7.2.180.0050.01015.04
7.2.170.0040.00815.06
7.2.160.0110.00415.10
7.2.150.0030.01216.98
7.2.140.0070.01016.96
7.2.130.0080.00316.97
7.2.120.0030.00616.94
7.2.110.0110.00416.68
7.2.100.0040.01116.70
7.2.90.0040.01116.76
7.2.80.0070.01017.01
7.2.70.0040.01117.04
7.2.60.0030.01117.01
7.2.50.0070.00717.04
7.2.40.0070.00316.87
7.2.30.0060.00917.03
7.2.20.0030.01017.02
7.2.10.0040.01116.63
7.2.00.0020.01018.20
7.1.330.0080.00715.77
7.1.320.0070.00415.86
7.1.310.0050.00915.77
7.1.300.0100.00515.68
7.1.290.0060.00515.79
7.1.280.0060.00515.57
7.1.270.0050.00915.90
7.1.260.0030.01215.70
7.1.250.0070.00316.04
7.1.200.0130.00015.62
7.1.100.0070.00718.35
7.1.70.0040.00417.20
7.1.60.0070.01719.40
7.1.50.0040.00716.98
7.1.00.0000.05722.47
7.0.200.0000.00816.53
7.0.140.0030.06722.07
7.0.110.0100.07319.96
7.0.100.0030.09019.95
7.0.90.0330.08719.80
7.0.80.0200.07019.88
7.0.70.0230.08020.00
7.0.60.0070.09019.88
7.0.50.0200.07720.24
7.0.40.0070.04020.02
7.0.30.0070.08020.16
7.0.20.0030.05020.05
7.0.10.0000.07320.10
7.0.00.0070.04020.09
5.6.280.0030.07320.91
5.6.250.0030.04320.64
5.6.240.0000.05320.59
5.6.230.0130.06020.64
5.6.220.0100.07720.41
5.6.210.0200.06720.59
5.6.200.0100.08021.01
5.6.190.0170.06021.07
5.6.180.0170.07321.09
5.6.170.0070.08321.08
5.6.160.0030.04321.07
5.6.150.0000.07020.88
5.6.140.0030.04321.04
5.6.130.0070.04021.03
5.6.120.0100.03321.07
5.6.110.0030.04020.89
5.6.100.0070.04320.87
5.6.90.0030.05021.07
5.6.80.0070.03720.43
5.6.70.0000.04320.60
5.6.60.0070.04720.30
5.6.50.0070.04020.29
5.6.40.0070.04720.39
5.6.30.0070.04020.38
5.6.20.0030.04020.27
5.6.10.0030.04320.39
5.6.00.0130.03320.57
5.5.380.0130.07020.28
5.5.370.0100.03720.53
5.5.360.0070.08320.32
5.5.350.0030.08720.44
5.5.340.0030.04320.80
5.5.330.0170.06320.95
5.5.320.0030.08320.80
5.5.310.0070.07020.89
5.5.300.0070.04020.82
5.5.290.0000.04320.86
5.5.280.0070.04020.76
5.5.270.0070.04020.91
5.5.260.0000.04320.98
5.5.250.0030.03720.45
5.5.240.0070.06020.15
5.5.230.0100.03320.21
5.5.220.0070.07020.13
5.5.210.0070.04720.13
5.5.200.0070.06020.14
5.5.190.0000.04320.24
5.5.180.0030.04320.20
5.5.160.0030.04020.00
5.5.150.0100.04320.17
5.5.140.0070.03320.13
5.5.130.0130.02720.27
5.5.120.0030.04020.13
5.5.110.0000.04320.13
5.5.100.0100.03720.09
5.5.90.0100.03720.03
5.5.80.0030.03320.01
5.5.70.0000.04719.94
5.5.60.0000.04020.09
5.5.50.0030.04320.17
5.5.40.0070.03719.92
5.5.30.0070.03719.98
5.5.20.0030.04020.14
5.5.10.0030.04019.99
5.5.00.0000.04720.11
5.4.450.0070.04719.33
5.4.440.0030.03719.51
5.4.430.0030.04719.30
5.4.420.0070.03719.47
5.4.410.0030.03719.20
5.4.400.0000.07018.99
5.4.390.0000.04319.00
5.4.380.0070.04019.15
5.4.370.0070.03319.20
5.4.360.0070.03319.29
5.4.350.0070.05319.00
5.4.340.0070.05019.20
5.4.320.0070.03719.09
5.4.310.0000.03719.19
5.4.300.0030.04718.98
5.4.290.0030.05318.98
5.4.280.0030.03719.03
5.4.270.0000.04019.14
5.4.260.0030.03719.00
5.4.250.0030.03718.98
5.4.240.0030.03718.99
5.4.230.0170.02018.97
5.4.220.0030.04319.14
5.4.210.0030.03318.95
5.4.200.0030.04019.16
5.4.190.0030.04019.08
5.4.180.0000.04319.01
5.4.170.0070.05019.00
5.4.160.0200.06019.12
5.4.150.0000.05318.96
5.4.140.0130.06716.48
5.4.130.0170.06016.27
5.4.120.0030.04316.44
5.4.110.0100.04016.41
5.4.100.0070.06716.33
5.4.90.0100.03316.58
5.4.80.0130.07016.39
5.4.70.0070.07016.56
5.4.60.0030.06316.48
5.4.50.0030.07716.56
5.4.40.0100.07316.58
5.4.30.0070.07016.37
5.4.20.0030.05316.36
5.4.10.0070.07316.56
5.4.00.0170.06315.68
5.3.290.0070.07314.81
5.3.280.0000.04314.55
5.3.270.0030.04314.62
5.3.260.0030.03714.62
5.3.250.0070.05714.69
5.3.240.0100.07014.73
5.3.230.0130.07314.59
5.3.220.0070.06014.55
5.3.210.0000.05714.65
5.3.200.0130.06714.69
5.3.190.0100.03314.51
5.3.180.0070.06714.54
5.3.170.0100.06714.69
5.3.160.0100.07014.57
5.3.150.0100.07314.52
5.3.140.0100.06714.41
5.3.130.0030.08014.50
5.3.120.0030.08314.54
5.3.110.0070.04314.54
5.3.100.0070.04714.02
5.3.90.0030.06714.11
5.3.80.0030.05714.10
5.3.70.0030.05014.10
5.3.60.0030.07314.00
5.3.50.0030.07313.96
5.3.40.0100.06313.96
5.3.30.0070.07013.92
5.3.20.0000.07313.83
5.3.10.0030.07013.67
5.3.00.0000.07313.62
5.2.170.0030.06011.15
5.2.160.0100.06011.18
5.2.150.0130.05011.13
5.2.140.0100.05711.11
5.2.130.0000.05011.07
5.2.120.0000.06311.07
5.2.110.0030.06011.18
5.2.100.0170.04711.19
5.2.90.0070.05711.11
5.2.80.0130.05711.08
5.2.70.0030.04011.07
5.2.60.0030.06311.05
5.2.50.0100.05311.03
5.2.40.0030.06011.00
5.2.30.0030.06011.10
5.2.20.0100.05710.94
5.2.10.0100.06010.83
5.2.00.0100.05310.69
5.1.60.0000.03310.06
5.1.50.0070.0409.98
5.1.40.0000.05710.05
5.1.30.0070.05310.32
5.1.20.0030.05010.32
5.1.10.0070.05010.02
5.1.00.0070.0439.89
5.0.50.0000.0238.70
5.0.40.0070.0408.41
5.0.30.0000.0638.20
5.0.20.0000.0478.03
5.0.10.0000.0478.13
5.0.00.0000.0638.16
4.4.90.0000.0377.18
4.4.80.0030.0337.18
4.4.70.0000.0277.18
4.4.60.0000.0337.18
4.4.50.0070.0177.18
4.4.40.0100.0477.18
4.4.30.0000.0377.18
4.4.20.0030.0337.18
4.4.10.0000.0207.18
4.4.00.0070.0537.18
4.3.110.0000.0307.18
4.3.100.0030.0337.18
4.3.90.0000.0377.18
4.3.80.0000.0507.18
4.3.70.0030.0337.18
4.3.60.0170.0207.18
4.3.50.0030.0377.18
4.3.40.0030.0507.18
4.3.30.0000.0307.18
4.3.20.0000.0307.18
4.3.10.0030.0337.18
4.3.00.0030.0237.18

preferences:
57.6 ms | 400 KiB | 5 Q