3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [PHP_INT_MAX => 1]; $array[] = 2; // 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.5.30.0110.00717.95
8.5.20.0110.00620.16
8.5.10.0100.00716.79
8.5.00.0130.01020.13
8.4.180.0140.00819.83
8.4.170.0140.00721.94
8.4.160.0130.01123.87
8.4.150.0070.00716.93
8.4.140.0120.00917.66
8.4.130.0130.00717.85
8.4.120.0110.00820.46
8.4.110.0170.00322.52
8.4.100.0150.00717.94
8.4.90.0110.00918.50
8.4.80.0110.00817.92
8.4.70.0240.00817.89
8.4.60.0260.00419.93
8.4.50.0190.00619.87
8.4.40.0170.00717.56
8.4.30.0160.00517.30
8.4.20.0180.00517.64
8.4.10.0160.00517.68
8.3.300.0180.01120.54
8.3.290.0110.01022.47
8.3.280.0100.00918.41
8.3.270.0160.01016.54
8.3.260.0120.00816.90
8.3.250.0070.01118.79
8.3.240.0090.00916.40
8.3.230.0140.00616.60
8.3.220.0070.00117.36
8.3.210.0050.00416.43
8.3.200.0140.00416.72
8.3.190.0160.00416.58
8.3.180.0140.00716.28
8.3.170.0170.00416.59
8.3.160.0150.00716.43
8.3.150.0150.00516.68
8.3.140.0160.00416.72
8.3.130.0190.00316.52
8.3.120.0160.00416.82
8.3.110.0120.00616.25
8.3.100.0150.00616.41
8.3.90.0170.00316.82
8.3.80.0180.00216.44
8.3.70.0170.00516.61
8.3.60.0170.00416.58
8.3.50.0150.00716.55
8.3.40.0160.00117.45
8.3.30.0130.00417.52
8.3.20.0170.00117.48
8.3.10.0140.00117.65
8.3.00.0130.00419.20
8.2.300.0130.00920.44
8.2.290.0120.00620.52
8.2.280.0150.00216.73
8.2.270.0170.00216.61
8.2.260.0140.00416.23
8.2.250.0150.00216.76
8.2.240.0110.00716.52
8.2.230.0100.00716.43
8.2.220.0140.00416.56
8.2.210.0140.00316.46
8.2.200.0140.00416.68
8.2.190.0110.00616.41
8.2.180.0130.00416.59
8.2.170.0190.00317.56
8.2.160.0160.00417.56
8.2.150.0180.00117.46
8.2.140.0170.00417.43
8.2.130.0190.00317.36
8.2.120.0180.00317.56
8.2.110.0180.00617.74
8.2.100.0110.00717.34
8.2.90.0150.00317.73
8.2.80.0140.00617.57
8.2.70.0150.00317.49
8.2.60.0120.00617.45
8.2.50.0150.00517.69
8.2.40.0160.00217.17
8.2.30.0150.00617.51
8.2.20.0120.00617.48
8.2.10.0150.00517.59
8.2.00.0120.00617.48
8.1.340.0120.00720.30

preferences:
42.02 ms | 853 KiB | 5 Q