3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $heh = 'foo'; class C { public function c() { var_dump($heh); } } $c = new C(); $c->c();

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.0320.00798.97
7.3.0rc30.0220.00416.55
7.3.0beta10.0050.00212.61
7.3.0alpha10.0040.00412.61
7.2.60.0060.00616.95
7.2.00.0060.00619.02
7.1.200.0080.00615.77
7.1.100.0100.00517.89
7.1.70.0100.00016.77
7.1.60.0090.01519.29
7.1.50.0090.01616.84
7.1.00.0070.07322.40
7.0.200.0080.00816.67
7.0.140.0000.07322.00
7.0.60.0170.04319.93
7.0.50.0100.03317.84
7.0.40.0130.05020.40
7.0.30.0200.04320.08
7.0.20.0230.05020.09
7.0.10.0300.06020.22
7.0.00.0030.05320.19
5.6.280.0000.07720.82
5.6.210.0070.05020.77
5.6.200.0070.08318.16
5.6.190.0070.05020.67
5.6.180.0330.07320.49
5.6.170.0330.07320.54
5.6.160.0030.06720.47
5.6.150.0100.07718.12
5.6.140.0100.06318.28
5.6.130.0030.06718.21
5.6.120.0070.08321.04
5.6.110.0030.07021.11
5.6.100.0130.08020.97
5.6.90.0200.05321.08
5.6.80.0070.08020.40
5.6.70.0300.07320.36
5.5.350.0230.02720.32
5.5.340.0000.04317.99
5.5.330.0170.07320.42
5.5.320.0130.06320.26
5.5.310.0400.05320.25
5.5.300.0030.04717.97
5.5.290.0070.07017.94
5.5.280.0070.04720.77
5.5.270.0030.04720.76
5.5.260.0170.07020.77
5.5.250.0100.08320.66
5.5.240.0130.07720.12
5.4.450.0670.05019.38
5.4.440.0130.08719.55
5.4.430.0130.06019.33
5.4.420.0170.05319.30
5.4.410.0170.05719.57
5.4.400.0270.06018.84
5.4.390.0200.06018.63
5.4.380.0230.06018.52
5.4.370.0100.03318.73
5.4.360.0130.03018.59
5.4.350.0080.03212.02
5.4.340.0060.03612.02
5.4.320.0060.03712.50
5.4.310.0050.04912.50
5.4.300.0040.03812.50
5.4.290.0080.04512.50
5.4.280.0100.03412.36
5.4.270.0090.03612.37
5.4.260.0100.03812.37
5.4.250.0050.04112.37
5.4.240.0060.03712.36
5.4.230.0070.04012.36
5.4.220.0100.03512.36
5.4.210.0070.03712.36
5.4.200.0080.03812.36
5.4.190.0040.04212.36
5.4.180.0060.04212.35
5.4.170.0100.04312.36
5.4.160.0070.04412.36
5.4.150.0150.07212.36
5.4.140.0090.07212.05
5.4.130.0080.04612.03
5.4.120.0080.04511.98
5.4.110.0040.04311.98
5.4.100.0130.04211.99
5.4.90.0120.04311.98
5.4.80.0100.04811.99
5.4.70.0150.04211.98
5.4.60.0080.04711.98
5.4.50.0150.05311.98
5.4.40.0090.05411.97
5.4.30.0150.06011.96
5.4.20.0080.04411.96
5.4.10.0060.03711.96
5.4.00.0110.05611.46
5.3.290.0040.04912.80
5.3.280.0080.05512.71
5.3.270.0110.04912.72
5.3.260.0180.05012.72
5.3.250.0110.04312.72
5.3.240.0100.06012.72
5.3.230.0190.06712.71
5.3.220.0150.07612.68
5.3.210.0140.07212.68
5.3.200.0160.07412.68
5.3.190.0080.05712.68
5.3.180.0310.11012.67
5.3.170.0140.07712.67
5.3.160.0050.05712.68
5.3.150.0090.05212.67
5.3.140.0100.05012.66
5.3.130.0060.05812.66
5.3.120.0070.05912.65
5.3.110.0090.05312.66
5.3.100.0100.04812.12
5.3.90.0110.05012.09
5.3.80.0160.04212.07
5.3.70.0110.04712.08
5.3.60.0180.04312.07
5.3.50.0090.04912.00
5.3.40.0150.04712.00
5.3.30.0090.05011.95
5.3.20.0120.04611.73
5.3.10.0070.05211.70
5.3.00.0090.05411.69
5.2.170.0060.0459.19
5.2.160.0060.0439.19
5.2.150.0070.0479.19
5.2.140.0040.0479.19
5.2.130.0060.0459.15
5.2.120.0090.0429.14
5.2.110.0060.0479.16
5.2.100.0090.0409.15
5.2.90.0140.0449.14
5.2.80.0090.0579.14
5.2.70.0070.0459.14
5.2.60.0060.0449.09
5.2.50.0050.0469.06
5.2.40.0060.0449.04
5.2.30.0140.0419.02
5.2.20.0110.0379.00
5.2.10.0050.0438.91
5.2.00.0050.0438.77
5.1.60.0070.0338.06
5.1.50.0080.0318.06
5.1.40.0080.0348.04
5.1.30.0050.0348.38
5.1.20.0070.0418.41
5.1.10.0050.0308.14
5.1.00.0060.0288.14
5.0.50.0060.0256.61
5.0.40.0070.0216.48
5.0.30.0030.0376.29
5.0.20.0050.0296.25
5.0.10.0070.0296.23
5.0.00.0070.0366.22
4.4.90.0040.0224.78
4.4.80.0070.0224.75
4.4.70.0050.0234.76
4.4.60.0070.0194.75
4.4.50.0040.0204.77
4.4.40.0040.0274.71
4.4.30.0070.0134.76
4.4.20.0070.0164.84
4.4.10.0050.0254.85
4.4.00.0040.0264.76
4.3.110.0030.0184.67
4.3.100.0040.0294.66
4.3.90.0040.0234.64
4.3.80.0040.0344.59
4.3.70.0060.0204.63
4.3.60.0020.0234.63
4.3.50.0040.0234.63
4.3.40.0070.0254.54
4.3.30.0020.0193.29
4.3.20.0040.0243.26
4.3.10.0020.0183.22
4.3.00.0100.0207.14