3v4l.org

run code in 300+ PHP versions simultaneously
<?php // PHPで扱えるINTの最大値をあらかじめキーとしておきます $a = [PHP_INT_MAX => 'ABC']; $a[] = 1; // Fatal error: Uncaught Error: Cannot add element to the array as the next element is already occupied // 追加できずに停止します

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.0110.00418.43
8.3.50.0100.00720.18
8.3.40.0120.00318.79
8.3.30.0080.01218.76
8.3.20.0050.00224.18
8.3.10.0000.00924.66
8.3.00.0000.00726.16
8.2.180.0180.00025.92
8.2.170.0140.00722.96
8.2.160.0070.00722.96
8.2.150.0030.00525.66
8.2.140.0050.00224.66
8.2.130.0040.00426.16
8.2.120.0080.00021.01
8.2.110.0060.00322.00
8.2.100.0040.00817.91
8.2.90.0000.00817.75
8.2.80.0040.00418.76
8.2.70.0040.00417.75
8.2.60.0040.00418.04
8.2.50.0080.00018.07
8.2.40.0050.00320.00
8.2.30.0050.00518.11
8.2.20.0030.00620.39
8.2.10.0000.00818.04
8.2.00.0000.00719.23
8.1.280.0090.00925.92
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0090.00020.52
8.1.230.0060.00617.70
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0030.00617.25
8.1.190.0090.00017.22
8.1.180.0060.00318.10
8.1.170.0030.00618.65
8.1.160.0040.00718.76
8.1.150.0000.00718.54
8.1.140.0050.00317.29
8.1.130.0030.00318.81
8.1.120.0000.00717.34
8.1.110.0000.00717.37
8.1.100.0070.00017.39
8.1.90.0040.00417.40
8.1.80.0080.00017.35
8.1.70.0090.00317.41
8.1.60.0080.00817.51
8.1.50.0150.00517.47
8.1.40.0120.00717.46
8.1.30.0120.00617.52
8.1.20.0110.00417.58
8.1.10.0170.00317.48
8.1.00.0140.00517.44
8.0.300.0070.00018.77
8.0.290.0050.00216.75
8.0.280.0040.00418.43
8.0.270.0040.00417.99
8.0.260.0000.00618.29
8.0.250.0040.00416.94
8.0.240.0000.00716.91
8.0.230.0000.00716.86
8.0.220.0030.00316.89
8.0.210.0040.00416.89
8.0.200.0070.00316.79
8.0.190.0130.00016.83
8.0.180.0110.00216.91
8.0.170.0150.00016.83
8.0.160.0110.00516.74
8.0.150.0150.00016.71
8.0.140.0080.00816.71
8.0.130.0000.01516.88
8.0.120.0130.00016.76
8.0.110.0130.00316.83
8.0.100.0130.00016.86
8.0.90.0040.01216.85
8.0.80.0110.00316.68
8.0.70.0120.00416.86
8.0.60.0110.00716.82
8.0.50.0170.00016.85
8.0.30.0120.00316.78
8.0.20.0050.01016.96
8.0.10.0100.00516.95
7.4.330.0020.00215.55
7.4.320.0030.00316.53
7.4.300.0040.00816.41
7.4.290.0070.00516.25
7.4.280.0090.00316.33
7.4.270.0180.00016.49
7.4.260.0070.00716.46
7.4.250.0120.00616.42
7.4.240.0090.00816.37
7.4.230.0110.00016.46
7.4.220.0070.00416.34
7.4.210.0060.00316.45
7.4.200.0100.00016.15
7.4.190.0030.00316.50
7.4.180.0070.00015.84
7.4.160.0050.00516.25
7.4.150.0030.00716.24
7.4.140.0130.00016.49
7.4.130.0060.00316.24
7.4.120.0000.00716.25
7.4.110.0060.00216.35
7.4.100.0080.00316.46
7.4.90.0070.00716.31
7.4.80.0110.00016.43
7.4.70.0060.00615.99
7.4.60.0040.00716.44
7.4.50.0030.00916.18
7.4.40.0080.00416.11
7.4.30.0080.00416.42
7.4.20.0150.00016.32
7.4.10.0130.00316.36
7.4.00.0030.00716.39

preferences:
30.89 ms | 400 KiB | 5 Q