3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test(...$set) { if (count($set) === 0) { throw new \ArgumentCountError('can throw'); } var_dump(count($set)); } try { test(1); test(1, 2); test(); } catch (\ArgumentCountError $e) { echo $e; }

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.0140.00018.79
8.3.30.0150.00018.52
8.3.20.0040.00420.16
8.3.10.0000.00821.71
8.3.00.0040.00419.16
8.2.170.0040.01122.96
8.2.160.0160.00320.32
8.2.150.0030.00524.18
8.2.140.0030.00524.66
8.2.130.0070.00021.04
8.2.120.0000.00726.35
8.2.110.0070.00421.07
8.2.100.0060.00618.22
8.2.90.0000.00819.05
8.2.80.0030.00617.97
8.2.70.0060.00317.63
8.2.60.0050.00317.92
8.2.50.0050.00318.10
8.2.40.0040.00420.59
8.2.30.0000.00720.96
8.2.20.0080.00018.07
8.2.10.0050.00318.10
8.2.00.0000.00717.96
8.1.270.0040.00422.14
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00623.84
8.1.230.0040.01019.16
8.1.220.0040.00417.76
8.1.210.0030.00618.77
8.1.200.0090.00017.35
8.1.190.0000.00917.35
8.1.180.0080.00018.10
8.1.170.0060.00320.37
8.1.160.0050.00319.00
8.1.150.0000.00820.59
8.1.140.0000.00719.56
8.1.130.0040.00418.93
8.1.120.0030.00517.34
8.1.110.0000.00717.36
8.1.100.0040.00417.36
8.1.90.0000.00817.50
8.1.80.0030.00317.48
8.1.70.0030.00317.44
8.1.60.0060.00317.52
8.1.50.0080.00017.50
8.1.40.0000.00817.49
8.1.30.0090.00317.66
8.1.20.0040.00417.57
8.1.10.0000.00717.59
8.1.00.0000.00717.39
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.41
8.0.270.0030.00317.17
8.0.260.0000.00716.87
8.0.250.0070.00016.91
8.0.240.0030.00316.91
8.0.230.0000.00716.96
8.0.220.0030.00316.92
8.0.210.0050.00316.78
8.0.200.0000.00816.91
8.0.190.0120.00016.94
8.0.180.0020.00516.86
8.0.170.0040.00416.96
8.0.160.0030.00516.96
8.0.150.0000.00716.84
8.0.140.0060.00316.93
8.0.130.0000.00513.33
8.0.120.0000.00716.86
8.0.110.0050.00317.04
8.0.100.0050.00217.01
8.0.90.0070.00016.76
8.0.80.0060.00916.96
8.0.70.0040.00416.96
8.0.60.0000.00717.06
8.0.50.0040.00416.93
8.0.30.0050.01117.00
8.0.20.0140.00517.40
8.0.10.0000.00817.06
8.0.00.0070.01016.79
7.4.330.0050.00015.55
7.4.320.0030.00316.57
7.4.300.0030.00316.58
7.4.290.0060.00316.45
7.4.280.0040.00416.54
7.4.270.0030.00316.62
7.4.260.0000.00716.62
7.4.250.0040.00416.58
7.4.240.0060.00316.46
7.4.230.0030.00316.68
7.4.220.0100.01016.52
7.4.210.0030.01216.40
7.4.200.0030.00316.33
7.4.160.0080.00816.46
7.4.150.0090.00917.40
7.4.140.0130.00917.86
7.4.130.0130.00316.55
7.4.120.0090.01216.50
7.4.110.0060.01216.39
7.4.100.0090.01016.37
7.4.90.0140.00716.25
7.4.80.0080.00819.39
7.4.70.0150.00316.48
7.4.60.0000.02216.43
7.4.50.0000.01816.52
7.4.40.0070.01016.54
7.4.30.0070.01016.73
7.4.00.0070.00715.21
7.3.330.0030.00313.32
7.3.320.0000.00513.32
7.3.310.0000.00716.17
7.3.300.0030.00316.36
7.3.290.0070.00916.32
7.3.280.0090.00916.33
7.3.270.0160.00417.40
7.3.260.0060.01116.50
7.3.250.0090.01116.31
7.3.240.0120.00816.47
7.3.230.0170.00016.50
7.3.210.0070.01016.48
7.3.200.0130.01016.33
7.3.190.0130.00616.64
7.3.180.0160.00016.29
7.3.170.0100.00716.52
7.3.160.0090.00616.43
7.3.00.0070.00716.61
7.2.330.0130.00516.63
7.2.320.0090.00916.49
7.2.310.0070.01116.47
7.2.300.0150.00316.66
7.2.290.0110.00616.75
7.2.130.0070.01116.95
7.2.120.0030.01417.03
7.2.110.0030.01216.64
7.2.100.0030.01016.95
7.2.90.0120.00316.79
7.2.80.0070.01016.86
7.2.70.0100.00317.05
7.2.60.0080.00816.74
7.2.50.0070.01016.45
7.2.40.0060.00916.71
7.2.30.0070.00517.02
7.2.20.0040.01116.98
7.2.10.0040.01116.89
7.2.00.0070.00618.13
7.1.250.0100.00715.54
7.1.240.0070.01015.92
7.1.230.0070.00715.86
7.1.220.0040.01215.88
7.1.210.0110.00415.82
7.1.200.0020.01115.86
7.1.190.0030.00615.50
7.1.180.0110.00015.99
7.1.170.0030.00615.87
7.1.160.0070.01015.60
7.1.150.0100.00715.91
7.1.140.0040.01215.75
7.1.130.0070.00715.83
7.1.120.0030.00715.78
7.1.110.0030.01015.90
7.1.100.0070.00316.94
7.1.90.0080.00615.73
7.1.80.0040.00415.85
7.1.70.0000.01316.42
7.1.60.0110.00625.44
7.1.50.0180.00825.34
7.1.40.0120.00525.11
7.1.30.0120.00625.02
7.1.20.0100.01125.28
7.1.10.0060.00816.24
7.1.00.0060.00616.33
7.0.330.0040.00715.13
7.0.320.0040.00815.18
7.0.310.0070.00715.33
7.0.300.0090.00615.54
7.0.290.0000.00915.21
7.0.280.0090.00615.28
7.0.270.0080.00015.43
7.0.260.0040.00415.26
7.0.250.0090.00615.45
7.0.240.0080.00815.49
7.0.230.0130.00315.58
7.0.220.0100.00415.41
7.0.210.0070.00715.30
7.0.200.0020.01016.07
7.0.190.0040.00915.87
7.0.180.0060.00515.76
7.0.170.0060.00715.87
7.0.160.0060.00715.86
7.0.150.0040.00715.84
7.0.140.0050.00915.88
7.0.130.0060.00716.00
7.0.120.0040.00616.10
7.0.110.0060.00515.93
7.0.100.0050.00815.79
7.0.90.0040.00615.93
7.0.80.0030.01015.73
7.0.70.0070.00615.88
7.0.60.0040.00615.69
7.0.50.0080.00515.91
7.0.40.0070.00715.01
7.0.30.0060.00714.94
7.0.20.0060.00814.91
7.0.10.0050.00915.03
7.0.00.0070.00714.76
5.6.380.0000.01414.42

preferences:
36.37 ms | 400 KiB | 5 Q