3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /** * Assigning values to a multidimensional array, new key has to be put * in the first position of the array expression, for example, */ $foo = array(); $foo['foo'] = 'hello'; // Wrong key order // $foo['foo']['bar'] = 'world'; // Right key order $foo['bar']['foo'] = 'world'; print_r($foo); ?>

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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.00.0030.01419.34
7.1.100.0030.01317.86
7.1.70.0040.00417.03
7.1.60.0070.01819.40
7.1.50.0110.01416.91
7.1.00.0030.03322.54
7.0.200.0000.00816.44
7.0.140.0070.07022.00
7.0.100.0130.05319.95
7.0.90.0030.04020.00
7.0.80.0400.07319.91
7.0.70.0470.07320.14
7.0.60.0430.07719.94
7.0.50.0470.07720.38
7.0.40.0130.07720.08
7.0.30.0070.09020.07
7.0.20.0100.08020.11
7.0.10.0170.06720.14
7.0.00.0100.08720.14
5.6.280.0000.07321.01
5.6.250.0030.03320.63
5.6.240.0070.04020.69
5.6.230.0030.03720.59
5.6.220.0030.06020.67
5.6.210.0170.07020.76
5.6.200.0070.04721.05
5.6.190.0170.07721.02
5.6.180.0000.09021.05
5.6.170.0030.09021.03
5.6.160.0070.08321.03
5.6.150.0170.07320.95
5.6.140.0130.06321.04
5.6.130.0130.07321.16
5.6.120.0070.06021.07
5.6.110.0200.06721.04
5.6.100.0130.07321.06
5.6.90.0030.09020.98
5.6.80.0030.08720.46
5.6.70.0030.08020.41
5.6.60.0030.09020.32
5.6.50.0100.07720.31
5.6.40.0200.06020.38
5.6.30.0130.08020.44
5.6.20.0100.07320.43
5.6.10.0230.06020.49
5.6.00.0130.07020.38
5.5.380.0000.03720.45
5.5.370.0030.03320.34
5.5.360.0170.07320.43
5.5.350.0070.04020.33
5.5.340.0130.07720.82
5.5.330.0130.05020.88
5.5.320.0030.06320.78
5.5.310.0130.06720.76
5.5.300.0000.05320.91
5.5.290.0130.07720.91
5.5.280.0100.08020.63
5.5.270.0200.07020.88
5.5.260.0100.07320.87
5.5.250.0100.07020.67
5.5.240.0170.07320.23
5.5.230.0100.07720.16
5.5.220.0130.06720.25
5.5.210.0030.06720.20
5.5.200.0100.08320.21
5.5.190.0030.09020.25
5.5.180.0130.07720.26
5.5.160.0100.07720.24
5.5.150.0070.07020.07
5.5.140.0100.07320.24
5.5.130.0130.06320.25
5.5.120.0130.04020.18
5.5.110.0070.07720.21
5.5.100.0170.06720.12
5.5.90.0030.04320.06
5.5.80.0100.07320.05
5.5.70.0070.04319.99
5.5.60.0000.07320.07
5.5.50.0030.06320.09
5.5.40.0100.07720.09
5.5.30.0130.07719.92
5.5.20.0100.07720.04
5.5.10.0130.07320.11
5.5.00.0130.07020.04
5.4.450.0030.04319.30
5.4.440.0130.07019.35
5.4.430.0100.06019.37
5.4.420.0030.08019.13
5.4.410.0200.06719.23
5.4.400.0130.07019.12
5.4.390.0000.08319.03
5.4.380.0200.06318.95
5.4.370.0170.07318.91
5.4.360.0130.06318.97
5.4.350.0130.06718.98
5.4.340.0100.07319.10
5.4.320.0070.08319.04
5.4.310.0130.07318.98
5.4.300.0000.07719.05
5.4.290.0170.06318.94
5.4.280.0030.06018.89
5.4.270.0100.07018.94
5.4.260.0170.06319.04
5.4.250.0070.04718.96
5.4.240.0030.07019.00
5.4.230.0070.07719.11
5.4.220.0130.06319.22
5.4.210.0070.05318.94
5.4.200.0030.04019.11
5.4.190.0070.05718.93
5.4.180.0100.07719.01
5.4.170.0070.05019.10
5.4.160.0130.07319.01
5.4.150.0200.04719.21
5.4.140.0130.07316.28
5.4.130.0030.07316.34
5.4.120.0030.08016.05
5.4.110.0130.06316.26
5.4.100.0170.06716.30
5.4.90.0070.07016.26
5.4.80.0030.07716.20
5.4.70.0070.07016.41
5.4.60.0170.06716.38
5.4.50.0070.04016.27
5.4.40.0000.04716.34
5.4.30.0030.06716.20
5.4.20.0000.04716.25
5.4.10.0070.07316.28
5.4.00.0030.04715.81
5.3.290.0030.07014.63
5.3.280.0100.05714.41
5.3.270.0100.08014.45
5.3.260.0170.07014.56
5.3.250.0000.04314.43
5.3.240.0030.06314.55
5.3.230.0070.06014.58
5.3.220.0070.05314.47
5.3.210.0070.05314.42
5.3.200.0070.07014.47
5.3.190.0070.08014.42
5.3.180.0170.06314.56
5.3.170.0100.06314.53
5.3.160.0070.04314.55
5.3.150.0100.06714.55
5.3.140.0070.04014.53
5.3.130.0130.07014.49
5.3.120.0070.06714.52
5.3.110.0000.07314.36
5.3.100.0070.08014.03
5.3.90.0000.06714.02
5.3.80.0100.07013.98
5.3.70.0130.06013.87
5.3.60.0100.03714.00
5.3.50.0030.06313.80
5.3.40.0100.07013.80
5.3.30.0130.03713.86
5.3.20.0030.07713.68
5.3.10.0070.06313.56
5.3.00.0000.08013.59
5.2.170.0030.06311.21
5.2.160.0100.05711.21
5.2.150.0070.06310.93
5.2.140.0100.03711.05
5.2.130.0030.04711.02
5.2.120.0070.05711.06
5.2.110.0100.05711.16
5.2.100.0000.06311.10
5.2.90.0130.05311.11
5.2.80.0030.06711.11
5.2.70.0030.06311.04
5.2.60.0100.05710.89
5.2.50.0000.04710.88
5.2.40.0100.05710.91
5.2.30.0070.05010.89
5.2.20.0100.05310.96
5.2.10.0100.06010.89
5.2.00.0030.05710.66
5.1.60.0070.05010.43
5.1.50.0030.05010.43
5.1.40.0030.05010.43
5.1.30.0000.06010.43
5.1.20.0070.05710.43
5.1.10.0100.05010.43
5.1.00.0000.06010.43
5.0.50.0000.02710.43
5.0.40.0000.04710.43
5.0.30.0030.06710.43
5.0.20.0030.02010.43
5.0.10.0030.02710.43
5.0.00.0030.03310.43
4.4.90.0070.02010.43
4.4.80.0070.03010.43
4.4.70.0000.03710.43
4.4.60.0030.03310.43
4.4.50.0000.04010.43
4.4.40.0030.05710.43
4.4.30.0000.04010.43
4.4.20.0070.03010.43
4.4.10.0030.02710.43
4.4.00.0030.05310.43
4.3.110.0000.03310.43
4.3.100.0030.01710.43
4.3.90.0000.01710.43
4.3.80.0030.02010.43
4.3.70.0070.01710.43
4.3.60.0000.03010.43
4.3.50.0000.01310.43
4.3.40.0000.04010.43
4.3.30.0000.03010.43
4.3.20.0100.02310.43
4.3.10.0030.03010.43
4.3.00.0000.03310.43