3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Parenta{ protected $menu; public function __construct(){ $this->menu = 'fuck'; } } class Child extends Parenta{ public function __construct(){ parent::__construct(); var_dump($this->$menu); } }
based on dUDaV

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.0060.00319.21
7.1.100.0000.00917.83
7.1.70.0000.01116.99
7.1.60.0000.01119.40
7.1.50.0220.00634.68
7.1.00.0070.07322.36
7.0.200.0030.01016.43
7.0.140.0030.07322.01
7.0.60.0100.06719.93
7.0.50.0030.07717.82
7.0.40.0070.07020.40
7.0.30.0430.06020.19
7.0.20.0270.05020.33
7.0.10.0130.08020.23
7.0.00.0070.05320.07
5.6.280.0000.07721.11
5.6.210.0170.06320.69
5.6.200.0000.04718.19
5.6.190.0070.04720.33
5.6.180.3570.03720.60
5.6.170.0300.07320.57
5.6.160.0100.07320.44
5.6.150.0070.06318.18
5.6.140.0130.07318.28
5.6.130.0130.06318.14
5.6.120.0130.08020.98
5.6.110.0070.04320.89
5.6.100.0200.07020.99
5.6.90.0100.05320.97
5.6.80.0070.04020.36
5.6.70.3830.04320.51
5.5.350.0270.06320.42
5.5.340.0070.03717.98
5.5.330.0070.08320.31
5.5.320.0230.07320.27
5.5.310.0270.07720.34
5.5.300.0030.04017.93
5.5.290.0070.07317.95
5.5.280.0100.08020.80
5.5.270.0130.05020.65
5.5.260.0170.07720.77
5.5.250.0030.05020.69
5.5.240.0170.05320.27
5.4.450.0330.04719.55
5.4.440.0330.03719.55
5.4.430.0270.04019.46
5.4.420.0230.04319.15
5.4.410.0200.04019.54
5.4.400.0630.04319.22
5.4.390.0430.04318.99
5.4.380.0370.05018.78
5.4.370.0400.05018.50
5.4.360.0300.05318.76
5.4.350.0270.05718.61
5.4.340.0370.05318.73
5.4.320.0050.04412.50
5.4.310.0070.03712.50
5.4.300.0080.03512.51
5.4.290.0070.03712.50
5.4.280.0020.03912.40
5.4.270.0040.03812.40
5.4.260.0050.03812.40
5.4.250.0090.03412.40
5.4.240.0060.03612.40
5.4.230.0040.03912.39
5.4.220.0070.03512.39
5.4.210.0060.03412.39
5.4.200.0060.03612.39
5.4.190.0040.03712.39
5.4.180.0050.03612.39
5.4.170.0080.03412.40
5.4.160.0070.03412.39
5.4.150.0040.03712.39
5.4.140.0050.04112.07
5.4.130.0060.03812.06
5.4.120.0050.03812.02
5.4.110.0070.04112.02
5.4.100.0040.03812.02
5.4.90.0080.04212.01
5.4.80.0080.04212.02
5.4.70.0040.03612.02
5.4.60.0080.03312.02
5.4.50.0060.03512.01
5.4.40.0030.03812.00
5.4.30.0050.03612.00
5.4.20.0070.04312.00
5.4.10.0070.03911.99
5.4.00.0070.03511.48
5.3.290.0070.03912.80
5.3.280.0040.04012.71
5.3.270.0050.04012.72
5.3.260.0080.03812.71
5.3.250.0050.03912.72
5.3.240.0070.03812.72
5.3.230.0080.04412.71
5.3.220.0090.05012.68
5.3.210.0090.03712.68
5.3.200.0070.03712.68
5.3.190.0060.03912.68
5.3.180.0050.03912.67
5.3.170.0070.04312.67
5.3.160.0060.04112.68
5.3.150.0060.03912.68
5.3.140.0080.04012.66
5.3.130.0070.04312.66
5.3.120.0100.04712.66
5.3.110.0070.04112.66
5.3.100.0060.04012.12
5.3.90.0030.03912.10
5.3.80.0030.04212.09
5.3.70.0070.04112.09
5.3.60.0030.04312.08
5.3.50.0060.04012.02
5.3.40.0070.03812.03
5.3.30.0060.04011.98
5.3.20.0050.04411.77
5.3.10.0070.04611.73
5.3.00.0080.04511.72
5.2.170.0020.0359.22
5.2.160.0060.0289.22
5.2.150.0050.0319.22
5.2.140.0050.0329.21
5.2.130.0030.0339.18
5.2.120.0060.0279.18
5.2.110.0050.0299.19
5.2.100.0080.0259.18
5.2.90.0060.0289.18
5.2.80.0050.0379.18
5.2.70.0010.0369.18
5.2.60.0030.0349.13
5.2.50.0060.0309.09
5.2.40.0070.0269.07
5.2.30.0040.0319.05
5.2.20.0070.0269.04
5.2.10.0040.0288.95
5.2.00.0020.0318.81
5.1.60.0050.0238.08
5.1.50.0040.0258.08
5.1.40.0040.0248.07
5.1.30.0080.0228.41
5.1.20.0050.0258.44
5.1.10.0080.0218.16
5.1.00.0090.0218.16
5.0.50.0050.0196.64
5.0.40.0050.0186.50
5.0.30.0080.0266.31
5.0.20.0050.0186.28
5.0.10.0040.0196.26
5.0.00.0070.0276.25
4.4.90.0050.0154.77
4.4.80.0010.0174.75
4.4.70.0030.0144.75
4.4.60.0020.0154.75
4.4.50.0020.0164.77
4.4.40.0050.0234.71
4.4.30.0050.0134.76
4.4.20.0030.0164.85
4.4.10.0030.0154.85
4.4.00.0010.0264.76
4.3.110.0010.0174.67
4.3.100.0030.0144.66
4.3.90.0040.0134.64
4.3.80.0040.0244.59
4.3.70.0030.0144.63
4.3.60.0000.0174.63
4.3.50.0040.0144.63
4.3.40.0020.0254.54
4.3.30.0030.0173.30
4.3.20.0010.0173.28
4.3.10.0000.0183.23
4.3.00.0070.01715.96