3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['0' => 'foo', '1' => 'bar']; // - keys will be dumped as integers // - \array_list($arr) will return true \var_dump($arr, \array_is_list($arr)); $arr['03'] = 'baz'; // - only the new key will be quoted as a string // - \array_list($arr) will return false \var_dump($arr, \array_is_list($arr));

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.4.120.0160.00220.91
8.4.110.0130.00822.58
8.4.100.0060.00317.47
8.4.90.0100.01122.23
8.4.80.0070.00219.64
8.4.70.0130.00618.05
8.4.60.0060.01118.94
8.4.50.0110.00520.44
8.4.40.0030.01717.70
8.4.30.0150.00323.71
8.4.20.0070.01319.41
8.4.10.0100.00619.23
8.3.250.0100.00819.04
8.3.240.0100.00916.59
8.3.230.0110.00916.52
8.3.220.0060.00220.76
8.3.210.0080.00418.60
8.3.200.0070.00216.49
8.3.190.0100.00516.99
8.3.180.0130.00716.67
8.3.170.0150.00316.91
8.3.160.0090.00918.25
8.3.150.0120.00616.93
8.3.140.0070.00718.14
8.3.130.0120.00616.39
8.3.120.0190.00416.40
8.3.110.0130.00816.32
8.3.100.0150.00816.35
8.3.90.0210.00316.35
8.3.80.0130.01116.18
8.3.70.0220.00016.24
8.3.60.0200.00016.52
8.3.50.0200.00416.41
8.3.40.0140.00717.43
8.3.30.0150.00417.40
8.3.20.0140.00517.10
8.3.10.0110.00617.34
8.3.00.0060.00617.37
8.2.290.0080.01020.22
8.2.280.0120.00718.57
8.2.270.0090.00916.40
8.2.260.0140.00317.18
8.2.250.0040.00419.18
8.2.240.0050.00316.95
8.2.230.0130.00716.41
8.2.220.0200.00016.45
8.2.210.0150.00416.53
8.2.200.0140.00816.72
8.2.190.0120.00816.46
8.2.180.0100.01016.32
8.2.170.0160.00517.39
8.2.160.0150.00717.52
8.2.150.0130.00717.48
8.2.140.0130.00917.41
8.2.130.0140.00717.45
8.2.120.0140.00517.24
8.2.110.0110.01117.23
8.2.100.0120.00917.18
8.2.90.0110.00917.37
8.2.80.0140.00717.38
8.2.70.0200.00017.39
8.2.60.0190.00317.04
8.2.50.0120.00917.35
8.2.40.0240.00017.42
8.2.30.0170.00317.43
8.2.20.0180.00017.09
8.2.10.0140.00517.23
8.2.00.0060.01317.23
8.1.330.0130.00721.78
8.1.320.0100.00916.16
8.1.310.0070.01016.88
8.1.300.0100.01015.93
8.1.290.0220.00016.07
8.1.280.0130.00715.97
8.1.270.0150.00717.13
8.1.260.0160.00516.96
8.1.250.0100.01017.12
8.1.240.0090.00917.05
8.1.230.0180.00016.99
8.1.220.0040.01517.02
8.1.210.0100.01017.05
8.1.200.0180.00516.76
8.1.190.0170.00517.16
8.1.180.0200.00016.81
8.1.170.0150.00316.71
8.1.160.0090.00616.82
8.1.150.0140.00317.25
8.1.140.0130.00316.81
8.1.130.0080.00816.98
8.1.120.0160.00017.11
8.1.110.0120.00617.10
8.1.100.0140.00316.57
8.1.90.0140.00216.97
8.1.80.0110.00717.04
8.1.70.0160.00317.00
8.1.60.0140.00317.09
8.1.50.0200.00317.05
8.1.40.0120.00617.11
8.1.30.0040.01217.16
8.1.20.0110.00717.11
8.1.10.0200.00017.07
8.1.00.0130.00416.81

preferences:
28.79 ms | 403 KiB | 5 Q