3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array('tttt'=> 100, "color" => "red"); print_r(array_keys($array)[1]);
based on TrOGV

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.3.0rc40.0000.01498.97
7.2.00.0000.01219.39
7.1.100.0000.01217.99
7.1.70.0040.00716.82
7.1.60.0030.02019.32
7.1.50.0190.01034.49
7.1.00.0030.07322.40
7.0.200.0030.00716.32
7.0.140.0030.07022.07
7.0.60.0070.07319.86
7.0.50.0030.08717.85
7.0.40.0030.07720.03
7.0.30.0430.07720.30
7.0.20.0200.08320.17
7.0.10.0030.09320.02
7.0.00.0200.07720.13
5.6.280.0100.07020.80
5.6.210.0130.08020.72
5.6.200.0030.09018.16
5.6.190.0030.04320.67
5.6.180.0070.04720.45
5.6.170.0430.05020.52
5.6.160.0100.08320.38
5.6.150.0100.03318.19
5.6.140.0030.08318.15
5.6.130.0030.05318.16
5.6.120.0100.08721.09
5.6.110.0070.07721.10
5.6.100.0130.08020.97
5.6.90.0030.05320.96
5.6.80.0070.05320.40
5.6.70.4100.04020.39
5.5.350.0300.06320.34
5.5.340.0100.04317.88
5.5.330.0070.04320.36
5.5.320.0270.07320.14
5.5.310.0330.04020.17
5.5.300.0030.08718.00
5.5.290.0000.08717.92
5.5.280.0170.07720.77
5.5.270.0200.06720.79
5.5.260.0130.05320.75
5.5.250.0070.06720.60
5.5.240.4070.04320.34
5.4.450.0770.04719.62
5.4.440.0870.05019.51
5.4.430.1100.07019.54
5.4.420.0730.05019.48
5.4.410.0970.05719.20
5.4.400.0900.07019.25
5.4.390.0830.06319.27
5.4.380.0200.04318.91
5.4.370.0900.05319.01
5.4.360.0930.05319.15
5.4.350.0730.04718.91
5.4.340.0060.03711.97
5.4.320.0040.04112.45
5.4.310.0090.04112.45
5.4.300.0080.03712.45
5.4.290.0060.03912.45
5.4.280.0060.04012.35
5.4.270.0070.04112.34
5.4.260.0080.04012.35
5.4.250.0070.03612.35
5.4.240.0060.04012.34
5.4.230.0050.03912.34
5.4.220.0060.03612.34
5.4.210.0070.04112.34
5.4.200.0050.04612.34
5.4.190.0100.04212.34
5.4.180.0060.03712.34
5.4.170.0080.05012.35
5.4.160.0060.03912.34
5.4.150.0060.03712.34
5.4.140.0060.04012.02
5.4.130.0050.03612.01
5.4.120.0040.04311.97
5.4.110.0080.03811.96
5.4.100.0070.03611.96
5.4.90.0080.03511.97
5.4.80.0040.03811.96
5.4.70.0060.03411.96
5.4.60.0030.04111.96
5.4.50.0070.03511.96
5.4.40.0080.04911.95
5.4.30.0060.04811.95
5.4.20.0070.03411.95
5.4.10.0080.03211.95
5.4.00.0060.03411.43
5.3.290.0050.04212.80
5.3.280.0060.03712.71
5.3.270.0070.04612.72
5.3.260.0030.05312.72
5.3.250.0070.04112.72
5.3.240.0070.04112.72
5.3.230.0080.03712.71
5.3.220.0050.04212.68
5.3.210.0060.03812.68
5.3.200.0080.04712.68
5.3.190.0070.04912.68
5.3.180.0040.05312.67
5.3.170.0070.05012.67
5.3.160.0070.05112.67
5.3.150.0080.03712.67
5.3.140.0090.03212.66
5.3.130.0060.03812.66
5.3.120.0110.03312.66
5.3.110.0040.04112.66
5.3.100.0040.03712.12
5.3.90.0070.03612.09
5.3.80.0100.03312.07
5.3.70.0050.03812.07
5.3.60.0080.03312.06
5.3.50.0140.03212.00
5.3.40.0140.03512.00
5.3.30.0030.04011.95
5.3.20.0070.03511.72
5.3.10.0050.03911.70
5.3.00.0100.03811.68
5.2.170.0050.0439.18
5.2.160.0070.0389.19
5.2.150.0080.0359.18
5.2.140.0030.0319.18
5.2.130.0050.0299.14
5.2.120.0040.0319.14
5.2.110.0050.0319.14
5.2.100.0040.0289.14
5.2.90.0060.0409.15
5.2.80.0070.0409.14
5.2.70.0130.0359.14
5.2.60.0050.0399.09
5.2.50.0100.0409.06
5.2.40.0070.0359.04
5.2.30.0060.0439.02
5.2.20.0080.0339.00
5.2.10.0030.0328.93
5.2.00.0070.0298.79
5.1.60.0020.0268.07
5.1.50.0060.0258.06
5.1.40.0060.0288.04
5.1.30.0030.0318.40
5.1.20.0100.0308.41
5.1.10.0050.0318.14
5.1.00.0000.0298.14
5.0.50.0020.0226.62
5.0.40.0030.0196.48
5.0.30.0040.0306.29
5.0.20.0050.0196.27
5.0.10.0040.0206.24
5.0.00.0040.0316.23
4.4.90.0030.0184.77
4.4.80.0010.0204.75
4.4.70.0030.0164.75
4.4.60.0020.0184.75
4.4.50.0030.0164.77
4.4.40.0020.0274.71
4.4.30.0030.0224.76
4.4.20.0070.0184.84
4.4.10.0030.0204.85
4.4.00.0000.0334.76
4.3.110.0020.0214.67
4.3.100.0010.0214.66
4.3.90.0070.0144.63
4.3.80.0020.0254.58
4.3.70.0040.0154.63
4.3.60.0010.0164.62
4.3.50.0040.0154.63
4.3.40.0030.0244.54
4.3.30.0020.0163.29
4.3.20.0020.0153.26
4.3.10.0030.0143.22
4.3.00.0130.0136.89