3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if($something['123'] != 1) { echo 'good'; } else { echo 'bad'; }

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.0130.00619.17
7.1.100.0060.00618.09
7.1.70.0040.00417.12
7.1.60.0030.01719.32
7.1.50.0040.01916.84
7.1.00.0070.07322.37
7.0.200.0030.00616.74
7.0.140.0000.07722.09
7.0.60.0070.06020.00
7.0.50.0070.08717.83
7.0.40.0030.06020.04
7.0.30.0300.07320.34
7.0.20.0170.05320.04
7.0.10.0070.04720.09
7.0.00.0000.04720.12
5.6.280.0100.06720.90
5.6.210.0000.04320.70
5.6.200.0030.04718.09
5.6.190.0030.05320.57
5.6.180.0330.05320.57
5.6.170.0270.05320.50
5.6.160.0070.08720.32
5.6.150.0070.05718.18
5.6.140.0070.05718.17
5.6.130.0030.04018.11
5.6.120.0070.05020.95
5.6.110.0030.08721.11
5.6.100.0230.06720.97
5.6.90.0100.07720.99
5.6.80.0130.05720.55
5.5.350.0130.08020.28
5.5.340.0000.04017.99
5.5.330.0070.08720.44
5.5.320.0300.04020.31
5.5.310.0270.07720.30
5.5.300.0030.06317.91
5.5.290.0070.08317.93
5.5.280.0130.04720.79
5.5.270.0200.05320.85
5.5.260.0000.04320.88
5.5.250.0130.07320.42
5.5.240.0200.02320.15
5.4.450.0200.05019.12
5.4.440.0200.05319.13
5.4.430.0200.05019.56
5.4.420.0630.00019.29
5.4.410.0670.00019.37
5.4.400.0600.00019.16
5.4.390.0670.00019.05
5.4.380.0700.00018.96
5.4.370.0830.00018.97
5.4.360.0700.00019.05
5.4.350.0670.00018.92
5.4.340.0070.03411.97
5.4.320.0040.03912.45
5.4.310.0040.04312.45
5.4.300.0060.03712.45
5.4.290.0110.03812.45
5.4.280.0050.04512.34
5.4.270.0080.03712.35
5.4.260.0040.03812.35
5.4.250.0050.03712.34
5.4.240.0100.03312.34
5.4.230.0090.04712.34
5.4.220.0060.03712.34
5.4.210.0060.03612.34
5.4.200.0060.03812.34
5.4.190.0110.03512.34
5.4.180.0090.03412.33
5.4.170.0050.03812.34
5.4.160.0080.04412.34
5.4.150.0050.04312.34
5.4.140.0070.05312.02
5.4.130.0070.03812.01
5.4.120.0060.03711.96
5.4.110.0070.03611.96
5.4.100.0020.04011.96
5.4.90.0050.03811.96
5.4.80.0040.03911.96
5.4.70.0090.04211.96
5.4.60.0060.03411.96
5.4.50.0100.03111.96
5.4.40.0050.03711.95
5.4.30.0080.03411.95
5.4.20.0050.03611.95
5.4.10.0080.03411.95
5.4.00.0040.03711.44
5.3.290.0070.04312.80
5.3.280.0070.03712.71
5.3.270.0080.04212.73
5.3.260.0050.04412.72
5.3.250.0060.03712.72
5.3.240.0040.03912.72
5.3.230.0080.03612.71
5.3.220.0070.03612.68
5.3.210.0080.04012.68
5.3.200.0050.04012.68
5.3.190.0050.04012.68
5.3.180.0050.04212.67
5.3.170.0080.03712.67
5.3.160.0060.04112.68
5.3.150.0070.03612.67
5.3.140.0070.03512.66
5.3.130.0020.04312.66
5.3.120.0040.04512.65
5.3.110.0070.03812.66
5.3.100.0060.04112.12
5.3.90.0080.03412.08
5.3.80.0050.03612.07
5.3.70.0060.03712.07
5.3.60.0080.03512.07
5.3.50.0060.03812.00
5.3.40.0020.04112.00
5.3.30.0070.03411.94
5.3.20.0080.03311.72
5.3.10.0060.03711.69
5.3.00.0020.04611.67
5.2.170.0040.0369.18
5.2.160.0040.0309.18
5.2.150.0090.0269.18
5.2.140.0090.0279.17
5.2.130.0010.0329.13
5.2.120.0030.0319.14
5.2.110.0030.0339.14
5.2.100.0060.0289.14
5.2.90.0050.0329.14
5.2.80.0060.0349.13
5.2.70.0090.0279.13
5.2.60.0030.0329.09
5.2.50.0060.0319.05
5.2.40.0080.0329.03
5.2.30.0060.0299.01
5.2.20.0050.0319.00
5.2.10.0040.0328.91
5.2.00.0070.0308.77
5.1.60.0030.0258.06
5.1.50.0040.0248.06
5.1.40.0050.0248.04
5.1.30.0030.0278.39
5.1.20.0070.0248.41
5.1.10.0070.0238.13
5.1.00.0040.0268.13
5.0.50.0050.0206.61
5.0.40.0020.0206.47
5.0.30.0030.0316.28
5.0.20.0010.0226.25
5.0.10.0030.0216.23
5.0.00.0050.0326.23
4.4.90.0010.0174.78
4.4.80.0020.0174.75
4.4.70.0030.0164.75
4.4.60.0020.0174.75
4.4.50.0030.0154.77
4.4.40.0040.0244.70
4.4.30.0040.0184.76
4.4.20.0040.0144.84
4.4.10.0040.0164.85
4.4.00.0030.0254.76
4.3.110.0050.0184.67
4.3.100.0030.0154.66
4.3.90.0030.0144.64
4.3.80.0050.0254.58
4.3.70.0010.0234.63
4.3.60.0010.0224.63
4.3.50.0040.0194.63
4.3.40.0030.0234.54
4.3.30.0030.0143.28
4.3.20.0010.0173.25
4.3.10.0030.0143.22
4.3.00.0070.0207.30