3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = ((((Array(1, 2, 3)))))[0]; echo $a;

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.60.0030.01216.54
7.2.00.0030.01219.08
7.1.200.0030.01015.41
7.1.100.0110.00518.02
7.1.70.0000.00917.21
7.1.60.0130.01019.46
7.1.50.0030.01716.86
7.1.00.0070.07322.45
7.0.200.0050.00216.33
7.0.140.0070.07022.02
7.0.60.0100.07320.03
7.0.50.0070.07717.88
7.0.40.0100.07720.40
7.0.30.0200.07020.17
7.0.20.0270.08320.20
7.0.10.0130.08020.16
7.0.00.0130.06720.02
5.6.280.0000.07720.81
5.6.210.0030.08320.44
5.6.200.0070.04018.19
5.6.190.0000.05020.47
5.6.180.0200.04720.42
5.6.170.0230.04720.39
5.6.160.0070.07720.50
5.6.150.0030.08318.12
5.6.140.0100.07718.11
5.6.130.0070.08018.14
5.6.120.0070.07020.95
5.6.110.0030.04321.11
5.6.100.0130.08021.11
5.6.90.0130.04020.98
5.6.80.0130.05720.39
5.5.350.0000.08720.49
5.5.340.0030.08317.95
5.5.330.0030.04320.25
5.5.320.3800.04020.35
5.5.310.0200.08020.43
5.5.300.0100.07717.95
5.5.290.0100.07317.97
5.5.280.0070.03720.77
5.5.270.0100.08720.64
5.5.260.0070.08020.75
5.5.250.0070.05320.64
5.5.240.0230.07720.18
5.4.450.0300.05719.50
5.4.440.0630.06019.55
5.4.430.0770.06019.50
5.4.420.0800.07319.47
5.4.410.1030.06019.24
5.4.400.1200.05719.10
5.4.390.1030.06019.22
5.4.380.0130.05718.50
5.4.370.0130.05018.76
5.4.360.0200.05018.72
5.4.350.0100.06018.69
5.4.340.0130.05318.63
5.4.320.0070.05112.50
5.4.310.0090.03412.49
5.4.300.0080.04512.50
5.4.290.0060.04512.50
5.4.280.0090.04712.39
5.4.270.0030.05212.39
5.4.260.0090.05412.39
5.4.250.0130.04812.39
5.4.240.0090.05112.39
5.4.230.0110.04612.38
5.4.220.0100.04712.38
5.4.210.0030.05512.38
5.4.200.0050.04912.38
5.4.190.0100.05512.38
5.4.180.0070.05612.38
5.4.170.0080.04712.39
5.4.160.0090.03812.38
5.4.150.0110.03312.38
5.4.140.0060.03912.07
5.4.130.0030.04212.05
5.4.120.0090.03612.01
5.4.110.0020.04012.01
5.4.100.0070.05512.01
5.4.90.0060.05712.01
5.4.80.0110.06712.01
5.4.70.0070.04112.01
5.4.60.0050.04012.01
5.4.50.0020.04812.01
5.4.40.0060.04112.00
5.4.30.0110.04611.99
5.4.20.0120.05011.98
5.4.10.0150.04611.99
5.4.00.0140.04811.49
5.3.290.0040.04712.80
5.3.280.0100.05212.71
5.3.270.0130.05212.72
5.3.260.0170.04912.72
5.3.250.0110.05412.72
5.3.240.0130.05212.72
5.3.230.0090.05512.71
5.3.220.0140.10812.68
5.3.210.0070.05812.68
5.3.200.0100.05512.68
5.3.190.0120.05712.68
5.3.180.0130.03912.68
5.3.170.0060.04612.67
5.3.160.0110.03912.67
5.3.150.0060.04312.68
5.3.140.0050.04312.66
5.3.130.0060.04312.66
5.3.120.0050.04212.66
5.3.110.0090.04212.66
5.3.100.0070.03912.12
5.3.90.0070.03812.08
5.3.80.0100.03612.07
5.3.70.0060.03712.08
5.3.60.0100.03312.07
5.3.50.0040.03812.00
5.3.40.0050.03912.00
5.3.30.0110.03011.95
5.3.20.0130.03011.73
5.3.10.0080.03411.70
5.3.00.0130.03111.68
5.2.170.0070.0389.18
5.2.160.0050.0309.18
5.2.150.0090.0289.18
5.2.140.0110.0529.18
5.2.130.0080.0439.14
5.2.120.0080.0279.14
5.2.110.0060.0299.14
5.2.100.0070.0289.14
5.2.90.0090.0279.14
5.2.80.0080.0309.14
5.2.70.0080.0449.14
5.2.60.0060.0449.09
5.2.50.0090.0379.06
5.2.40.0070.0359.04
5.2.30.0090.0509.01
5.2.20.0040.0369.00
5.2.10.0060.0398.93
5.2.00.0070.0278.78
5.1.60.0060.0228.06
5.1.50.0020.0278.07
5.1.40.0050.0248.05
5.1.30.0060.0258.40
5.1.20.0110.0268.41
5.1.10.0020.0288.14
5.1.00.0050.0398.14
5.0.50.0050.0226.62
5.0.40.0050.0236.48
5.0.30.0080.0336.29
5.0.20.0010.0236.27
5.0.10.0030.0266.24
5.0.00.0090.0446.23
4.4.90.0080.0334.78
4.4.80.0080.0264.76
4.4.70.0070.0234.76
4.4.60.0040.0204.75
4.4.50.0050.0174.77
4.4.40.0060.0244.71
4.4.30.0050.0144.76
4.4.20.0010.0184.84
4.4.10.0030.0164.85
4.4.00.0020.0274.76
4.3.110.0050.0154.66
4.3.100.0050.0134.66
4.3.90.0030.0154.63
4.3.80.0030.0254.58
4.3.70.0030.0154.63
4.3.60.0020.0154.62
4.3.50.0030.0154.63
4.3.40.0030.0244.54
4.3.30.0040.0143.28
4.3.20.0000.0183.26
4.3.10.0030.0153.22
4.3.00.0130.0236.79