3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { $numargs = func_num_args(); echo "Number of arguments: $numargs<br />\n"; if ($numargs >= 2) { echo "Second argument is: " . func_get_arg (1) . "<br />\n"; } $arg_list = func_get_args(); for ($i = 0; $i < $numargs; $i++) { echo "Argument $i is: " . $arg_list[$i] . "<br />\n"; } } foo (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.40.0000.01418.52
8.3.30.0070.00718.65
8.3.20.0090.00018.63
8.3.10.0050.00318.85
8.3.00.0090.00019.25
8.2.170.0090.00622.96
8.2.160.0070.01018.95
8.2.150.0000.00924.18
8.2.140.0030.00624.66
8.2.130.0000.00726.16
8.2.120.0050.00319.83
8.2.110.0110.01120.58
8.2.100.0040.00717.91
8.2.90.0000.00817.63
8.2.80.0080.00018.77
8.2.70.0040.00417.93
8.2.60.0090.00018.16
8.2.50.0060.00318.10
8.2.40.0030.00521.06
8.2.30.0040.00419.35
8.2.20.0030.00617.64
8.2.10.0000.00817.75
8.2.00.0040.00417.72
8.1.270.0090.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00322.19
8.1.230.0040.00717.70
8.1.220.0000.00917.77
8.1.210.0000.00818.77
8.1.200.0040.00417.35
8.1.190.0060.00317.35
8.1.180.0040.00418.10
8.1.170.0000.00818.66
8.1.160.0040.00419.00
8.1.150.0000.00718.54
8.1.140.0070.00017.45
8.1.130.0030.00317.47
8.1.120.0040.00317.34
8.1.110.0040.00417.46
8.1.100.0000.00717.45
8.1.90.0000.00717.35
8.1.80.0000.00717.38
8.1.70.0070.00017.43
8.1.60.0030.00617.59
8.1.50.0000.00817.43
8.1.40.0080.00017.59
8.1.30.0090.00017.67
8.1.20.0080.00317.59
8.1.10.0100.00017.52
8.1.00.0060.00317.46
8.0.300.0040.00718.77
8.0.290.0090.00016.75
8.0.280.0030.00318.45
8.0.270.0040.00417.32
8.0.260.0000.00616.83
8.0.250.0000.01016.99
8.0.240.0040.00416.91
8.0.230.0030.00616.94
8.0.220.0000.00716.90
8.0.210.0080.00016.90
8.0.200.0030.00316.84
8.0.190.0050.00216.94
8.0.180.0040.00416.93
8.0.170.0040.00416.89
8.0.160.0030.00516.88
8.0.150.0000.00716.80
8.0.140.0070.00016.82
8.0.130.0030.00313.35
8.0.120.0100.00016.77
8.0.110.0000.00716.77
8.0.100.0050.00316.72
8.0.90.0000.00716.76
8.0.80.0100.00716.84
8.0.70.0020.00516.69
8.0.60.0060.00316.94
8.0.50.0030.00516.68
8.0.30.0040.01516.86
8.0.20.0140.00416.98
8.0.10.0000.00716.80
8.0.00.0100.00716.75
7.4.330.0000.00413.04
7.4.320.0000.00616.45
7.4.300.0030.00316.36
7.4.290.0000.01116.52
7.4.280.0050.00316.62
7.4.270.0060.00316.43
7.4.260.0000.00613.25
7.4.250.0030.00616.57
7.4.240.0040.00216.62
7.4.230.0030.00316.34
7.4.220.0070.02016.45
7.4.210.0130.00316.46
7.4.200.0050.00316.55
7.4.190.0030.00616.59
7.4.160.0100.01016.50
7.4.150.0110.00716.31
7.4.140.0080.01517.86
7.4.130.0110.00616.46
7.4.120.0100.00616.64
7.4.110.0190.00616.25
7.4.100.0070.01716.48
7.4.90.0090.01316.54
7.4.80.0070.01416.29
7.4.70.0030.01416.53
7.4.60.0040.01316.47
7.4.50.0000.00516.60
7.4.40.0070.01116.59
7.4.30.0070.01116.38
7.4.00.0120.00314.78
7.3.330.0030.00313.29
7.3.320.0000.00613.32
7.3.310.0000.00716.38
7.3.300.0030.00616.29
7.3.290.0050.01016.38
7.3.280.0190.00016.38
7.3.270.0100.00616.61
7.3.260.0120.01216.39
7.3.240.0150.00816.35
7.3.230.0090.00916.56
7.3.210.0070.01016.63
7.3.200.0140.00316.29
7.3.190.0060.00916.55
7.3.180.0090.00616.54
7.3.170.0120.00616.32
7.3.160.0070.01016.44
7.3.120.0100.00714.71
7.3.70.0110.00814.90
7.3.60.0030.01014.82
7.3.50.0110.00314.89
7.3.40.0050.00614.77
7.3.30.0100.00314.82
7.3.20.0070.00716.79
7.3.10.0130.00716.73
7.3.00.0090.00916.73
7.2.330.0110.00616.37
7.2.320.0150.00416.81
7.2.310.0130.00916.82
7.2.300.0040.01516.55
7.2.290.0110.01016.84
7.2.200.0090.01215.12
7.2.190.0050.00514.92
7.2.180.0060.00615.16
7.2.170.0090.00315.06
7.2.160.0070.00714.91
7.2.150.0100.00316.73
7.2.140.0060.00916.97
7.2.130.0040.00816.85
7.2.120.0070.00716.93
7.2.110.0070.00716.93
7.2.100.0050.00916.73
7.2.90.0090.00617.18
7.2.80.0030.00917.02
7.2.70.0100.00616.95
7.2.60.0100.00716.84
7.2.50.0100.00716.99
7.2.40.0290.01117.54
7.2.30.0240.01317.36
7.2.20.0190.00817.50
7.2.10.0260.00717.49
7.2.00.0210.00918.14
7.1.300.0050.00915.94
7.1.290.0100.00315.69
7.1.280.0050.00515.85
7.1.270.0000.01215.61
7.1.260.0110.00315.83
7.1.250.0060.00915.97
7.1.240.0090.00915.54
7.1.230.0080.01416.00
7.1.220.0190.00015.46
7.1.210.0170.00615.68
7.1.200.0110.00615.91
7.1.190.0150.00715.77
7.1.180.0180.00715.98
7.1.170.0150.01115.75
7.1.160.0210.01016.23
7.1.150.0210.01116.24
7.1.140.0190.01616.36
7.1.130.0270.00616.25
7.1.120.0290.01316.15
7.1.110.0240.01016.11
7.1.100.0230.00916.68
7.1.90.0330.00715.98
7.1.80.0240.01116.12
7.1.70.0200.00716.23
7.1.60.0250.01022.78
7.1.50.0290.01021.98
7.1.40.0340.00924.20
7.1.30.0420.01024.09
7.1.20.0560.01324.24
7.1.10.0170.01015.17
7.1.00.0140.01517.67
7.0.330.0130.00615.45
7.0.320.0130.00815.29
7.0.310.0040.01515.56
7.0.300.0170.00015.38
7.0.290.0260.01216.05
7.0.280.0090.01315.35
7.0.270.0290.00716.01
7.0.260.0310.00715.78
7.0.250.0310.00715.82
7.0.240.0290.00615.87
7.0.230.0260.01015.83
7.0.220.0810.00815.72
7.0.210.0240.01114.96
7.0.200.3590.00814.97
7.0.190.0280.01615.16
7.0.180.0290.00914.93
7.0.170.0360.01314.86
7.0.160.0320.00814.93
7.0.150.0270.00814.90
7.0.140.0130.02817.20
7.0.130.0170.00915.14
7.0.120.0270.00615.20
7.0.110.0240.01115.02
7.0.100.0230.01115.03
7.0.90.0300.00815.06
7.0.80.0240.01014.74
7.0.70.0200.00914.94
7.0.60.0200.03516.52
7.0.50.0240.03416.00
7.0.40.0310.03415.93
7.0.30.0320.03115.88
7.0.20.0280.03016.00
7.0.10.0190.02716.03
7.0.00.0270.02216.00
5.6.400.0150.00614.07
5.6.390.0140.00514.59
5.6.380.0190.00914.50
5.6.370.0100.01314.63
5.6.360.0130.02014.37
5.6.350.0070.01514.39
5.6.340.0180.00314.29
5.6.330.0180.01314.15
5.6.320.0150.00814.41
5.6.310.0120.00714.58
5.6.300.0170.03217.54
5.6.290.0180.02817.55
5.6.280.0100.05418.81
5.6.270.0150.03617.73
5.6.260.0160.03917.68
5.6.250.0100.03617.65
5.6.240.0160.03517.73
5.6.230.0150.03517.71
5.6.220.0140.03617.58
5.6.210.0100.03518.57
5.6.200.0140.04617.74
5.6.190.0100.04317.81
5.6.180.0160.03617.78
5.6.170.0160.03717.79
5.6.160.0150.05417.80
5.6.150.0140.04517.75
5.6.140.0140.04717.70
5.6.130.0090.04917.76
5.6.120.0100.05317.81
5.6.110.0140.04417.82
5.6.100.0120.05317.71
5.6.90.0140.04117.74
5.6.80.0120.05017.37
5.6.70.0120.04717.34
5.6.60.0150.05217.44
5.6.50.0130.03817.41
5.6.40.0140.05417.49
5.6.30.0130.05217.28
5.6.20.0090.04817.31
5.6.10.0200.04917.40
5.6.00.0160.05017.41
5.5.380.0110.03615.91
5.5.370.0110.03415.89
5.5.360.0110.03415.87
5.5.350.0100.04517.43
5.5.340.0140.03516.65
5.5.330.0190.04216.72
5.5.320.0140.05616.72
5.5.310.0130.03716.72
5.5.300.0150.04616.67
5.5.290.0120.04316.82
5.5.280.0160.04916.86
5.5.270.0120.04316.78
5.5.260.0110.04816.74
5.5.250.0170.04616.64
5.5.240.0110.05616.34
5.5.230.0180.05016.21
5.5.220.0100.03816.35
5.5.210.0110.04316.30
5.5.200.0120.04816.27
5.5.190.0110.04916.36
5.5.180.0130.05116.24
5.5.170.0170.00614.23
5.5.160.0110.04416.33
5.5.150.0180.04216.31
5.5.140.0120.04616.34
5.5.130.0150.04616.20
5.5.120.0140.05216.34
5.5.110.0080.04116.22
5.5.100.0110.04816.15
5.5.90.0180.03816.28
5.5.80.0140.03816.11
5.5.70.0090.04216.28
5.5.60.0150.03916.20
5.5.50.0130.05216.19
5.5.40.0150.03516.20
5.5.30.0140.04316.23
5.5.20.0100.05116.21
5.5.10.0160.04816.04
5.5.00.0110.05016.12
5.4.450.0150.04616.65
5.4.440.0160.04516.67
5.4.430.0140.04916.63
5.4.420.0080.04116.56
5.4.410.0120.04816.49
5.4.400.0160.03616.58
5.4.390.0150.04616.28
5.4.380.0130.04516.41
5.4.370.0170.04716.47
5.4.360.0140.05216.40
5.4.350.0110.05016.34
5.4.340.0130.03516.42
5.4.330.0140.00711.20
5.4.320.0140.04216.46
5.4.310.0170.04416.37
5.4.300.0090.04516.50
5.4.290.0120.04716.43
5.4.280.0130.04716.40
5.4.270.0110.04616.50
5.4.260.0120.03416.35
5.4.250.0140.04316.43
5.4.240.0130.03616.35
5.4.230.0100.05116.43
5.4.220.0130.04916.27
5.4.210.0100.04116.41
5.4.200.0120.04116.42
5.4.190.0120.05216.27
5.4.180.0130.04716.38
5.4.170.0140.03716.36
5.4.160.0120.05116.39
5.4.150.0130.05216.34
5.4.140.0160.04614.62
5.4.130.0090.05214.71
5.4.120.0120.03714.62
5.4.110.0150.04114.68
5.4.100.0080.03914.75
5.4.90.0100.03314.68
5.4.80.0090.04414.76
5.4.70.0110.04614.75
5.4.60.0130.04014.73
5.4.50.0090.03714.72
5.4.40.0090.04114.79
5.4.30.0140.04714.74
5.4.20.0100.03514.66
5.4.10.0070.04814.57
5.4.00.0100.04614.39
5.3.290.0140.04713.40
5.3.280.0100.04613.27
5.3.270.0100.04713.34
5.3.260.0080.05113.21
5.3.250.0100.05013.38
5.3.240.0140.05113.30
5.3.230.0110.04813.20
5.3.220.0110.04613.17
5.3.210.0110.05113.27
5.3.200.0100.04813.19
5.3.190.0140.04613.28
5.3.180.0090.03713.35
5.3.170.0110.04613.40
5.3.160.0120.04513.27
5.3.150.0120.05213.20
5.3.140.0110.04213.28
5.3.130.0160.05213.29
5.3.120.0150.04913.27
5.3.110.0100.03613.24
5.3.100.0140.04613.00
5.3.90.0110.04312.95
5.3.80.0090.03512.88
5.3.70.0140.03412.93
5.3.60.0110.04212.85
5.3.50.0110.04612.86
5.3.40.0120.03412.84
5.3.30.0140.04612.91
5.3.20.0130.04512.66
5.3.10.0110.04112.50
5.3.00.0100.04412.58

preferences:
45.4 ms | 400 KiB | 5 Q