3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array_fill_keys([1.5], 'hello'); $b = [1.5 => 'hello']; var_dump([$a, $b]); var_dump([$a[1.5], $b[1.5]);

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)
5.4.380.2270.04319.06
5.4.370.2470.03319.16
5.4.360.2200.05019.20
5.4.350.2000.03718.87
5.4.340.2000.03718.84
5.4.320.2400.03719.00
5.4.310.2170.04019.08
5.4.300.2530.04319.13
5.4.290.2130.04319.14
5.4.280.2430.04719.13
5.4.270.2100.03319.08
5.4.260.2030.04019.16
5.4.250.2130.03319.19
5.4.240.2070.04019.19
5.4.230.2030.03718.94
5.4.220.2070.04019.19
5.4.210.2200.03719.24
5.4.200.2070.03719.14
5.4.190.2100.03719.12
5.4.180.2130.03019.23
5.4.170.2070.03319.30
5.4.160.2170.04718.85
5.4.150.2130.03719.07
5.4.140.1930.04716.30
5.4.130.2230.04316.50
5.4.120.2070.03716.29
5.4.110.2430.04316.45
5.4.100.2300.03016.20
5.4.90.2270.03316.21
5.4.80.2100.03016.26
5.4.70.2100.03716.54
5.4.60.1830.03316.17
5.4.50.0100.03016.54
5.4.40.0070.07016.53
5.4.30.1130.05716.56
5.4.20.2230.03716.52
5.4.10.2030.03716.53
5.4.00.1470.03715.75
5.3.290.0030.08314.68
5.3.280.0100.03714.61
5.3.270.0170.07014.46
5.3.260.1500.05014.55
5.3.250.2200.04014.48
5.3.240.1970.03714.45
5.3.230.2230.04714.46
5.3.220.2230.03714.42
5.3.210.2230.03714.51
5.3.200.2170.04714.50
5.3.190.2230.03714.55
5.3.180.1670.03714.52
5.3.170.0070.04014.41
5.3.160.0070.04014.50
5.3.150.0870.04314.39
5.3.140.2200.04314.51
5.3.130.2230.04314.52
5.3.120.2200.04314.50
5.3.110.2300.04714.39
5.3.100.2230.04013.99
5.3.90.2230.04313.96
5.3.80.2400.02313.96
5.3.70.2130.03313.86
5.3.60.2130.04013.85
5.3.50.0870.04313.89
5.3.40.0030.04313.74
5.3.30.0000.08313.79
5.3.20.0400.06713.52
5.3.10.2070.03313.61
5.3.00.2230.04013.53
5.2.170.1970.03012.05
5.2.160.1800.03312.05
5.2.150.1930.03012.05
5.2.140.1930.03312.05
5.2.130.2030.03012.05
5.2.120.2000.03712.05
5.2.110.1870.02312.05
5.2.100.1530.03012.05
5.2.90.0030.04712.05
5.2.80.0000.03012.05
5.2.70.0000.05012.05
5.2.60.1800.02712.05
5.2.50.1830.02312.05
5.2.40.1370.03012.05
5.2.30.1430.03312.05
5.2.20.1430.02712.05
5.2.10.1400.02712.05
5.2.00.1670.03312.05
5.1.60.1370.02712.05
5.1.50.1430.02012.05
5.1.40.1570.02712.05
5.1.30.1370.02712.05
5.1.20.1400.02312.05
5.1.10.1400.02312.05
5.1.00.0000.02712.05
5.0.50.0070.02012.05
5.0.40.0000.02012.05
5.0.30.0000.03012.05
5.0.20.0000.02312.05
5.0.10.0000.02012.05
5.0.00.0170.03712.05
4.4.90.0700.01312.05
4.4.80.0730.01712.05
4.4.70.0730.01012.05
4.4.60.0800.02012.05
4.4.50.0730.01712.05
4.4.40.0670.02312.05
4.4.30.0800.01712.05
4.4.20.0770.01712.05
4.4.10.0670.01712.05
4.4.00.0700.02312.05
4.3.110.0700.01312.05
4.3.100.0730.01312.05
4.3.90.0700.01312.05
4.3.80.0670.02712.05
4.3.70.0730.01312.05
4.3.60.0830.02312.05
4.3.50.0730.01712.05
4.3.40.1070.03012.05
4.3.30.0370.01312.05
4.3.20.0470.02312.05
4.3.10.0330.02012.05
4.3.00.0000.01312.05

preferences:
145.92 ms | 1394 KiB | 7 Q