3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class myparent { public function foo($bar) { // do stuff } } class mychild extends myparent { public $val; private function bar(myparent &$baz) { // do stuff } public function __construct($val) { $this->val = $val; } } $child = new mychild('hello world'); $child->foo('test'); $child->bar('test');

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.0100.01098.97
7.3.0rc30.0060.00916.66
7.3.0beta10.0000.01012.62
7.3.0alpha10.0110.00012.84
7.2.80.0100.00316.40
7.2.60.0080.00816.79
7.2.00.0040.01119.32
7.1.200.0040.00715.73
7.1.100.0040.00717.70
7.1.70.0000.00716.92
7.1.60.0150.00919.70
7.1.50.0060.01916.77
7.1.00.0070.07322.32
7.0.200.0020.00516.75
7.0.140.0000.07322.07
7.0.60.0270.06321.79
7.0.50.0070.03717.86
7.0.40.0030.04720.30
7.0.30.0270.04020.24
7.0.20.0230.07320.25
7.0.10.0170.05320.19
7.0.00.0070.03720.24
5.6.280.0100.06721.11
5.6.210.0070.04320.72
5.6.200.0070.04018.13
5.6.190.0030.04720.52
5.6.180.0130.04720.41
5.6.170.0170.05020.44
5.6.160.0070.03720.43
5.6.150.0100.07718.27
5.6.140.0030.06318.18
5.6.130.0130.05018.14
5.6.120.0070.05721.14
5.6.110.0130.08020.86
5.6.100.0030.08721.02
5.6.90.0200.07021.03
5.6.80.0030.04020.51
5.5.350.0270.08020.34
5.5.340.0070.03317.99
5.5.330.0070.05020.37
5.5.320.0270.03720.38
5.5.310.0300.08720.19
5.5.300.0070.04318.03
5.5.290.0100.06718.08
5.5.280.0130.08020.81
5.5.270.0030.08720.73
5.5.260.0070.07320.96
5.5.250.0070.04020.55
5.5.240.0330.07020.05
5.4.450.3270.03719.38
5.4.440.0000.04719.27
5.4.430.1700.04319.39
5.4.420.3630.04319.49
5.4.410.3670.03719.41
5.4.400.3170.04018.95
5.4.390.3700.03718.93
5.4.380.3970.03718.93
5.4.370.3930.03718.97
5.4.360.4100.04019.18
5.4.350.3700.04019.04
5.4.340.3800.03319.21
5.4.320.3930.04719.04
5.4.310.3900.04319.05
5.4.300.4000.04019.15
5.4.290.3930.04019.15
5.4.280.3800.03719.26
5.4.270.3700.04319.10
5.4.260.3800.03719.17
5.4.250.4100.04018.93
5.4.240.3130.04018.97
5.4.230.3770.04019.16
5.4.220.3930.04018.97
5.4.210.3730.03318.98
5.4.200.2070.04319.18
5.4.190.1400.03719.09
5.4.180.0870.03718.92
5.4.170.0100.03319.16
5.4.160.1100.04019.08
5.4.150.1770.03718.97
5.4.140.3130.03316.54
5.4.130.3070.03716.52
5.4.120.3600.03016.48
5.4.110.1700.03316.40
5.4.100.3200.03316.50
5.4.90.3330.04016.48
5.4.80.3570.03316.67
5.4.70.4800.03716.38
5.4.60.4330.03316.54
5.4.50.0030.06716.45
5.4.40.0070.05316.62
5.4.30.3430.03016.29
5.4.20.4530.04016.30
5.4.10.3800.03316.50
5.4.00.3930.03015.90
5.3.290.4070.04014.70
5.3.280.4300.04314.67
5.3.270.0000.04014.77
5.3.260.2800.03314.68
5.3.250.2700.04014.64
5.3.240.1800.03714.61
5.3.230.3630.03714.61
5.3.220.1630.03314.62
5.3.210.2400.03314.58
5.3.200.3400.04714.45
5.3.190.3130.03014.71
5.3.180.2870.03014.59
5.3.170.3770.03314.72
5.3.160.4370.03314.57
5.3.150.0330.06014.64
5.3.140.0100.05314.70
5.3.130.3370.04014.55
5.3.120.3500.04014.58
5.3.110.3900.04014.62
5.3.100.3670.03014.05
5.3.90.4030.03314.04
5.3.80.4330.03314.12
5.3.70.4070.03714.10
5.3.60.4030.03014.05
5.3.50.3600.03313.96
5.3.40.3430.04313.95
5.3.30.3500.03313.86
5.3.20.3230.03713.70
5.3.10.3770.03313.67
5.3.00.3900.03713.54
5.2.170.3370.03011.10
5.2.160.3230.03011.21
5.2.150.2970.02011.21
5.2.140.3070.04011.10
5.2.130.3200.02711.00
5.2.120.3430.02711.06
5.2.110.3300.02311.07
5.2.100.3070.02711.10
5.2.90.3200.02711.16
5.2.80.3330.03311.16
5.2.70.2830.04011.06
5.2.60.3200.03011.11
5.2.50.3270.02311.17
5.2.40.2700.03311.03
5.2.30.2830.02710.97
5.2.20.2670.02711.12
5.2.10.3100.02010.78
5.2.00.3070.02710.75
5.1.60.2570.02710.01
5.1.50.2130.02010.16
5.1.40.2530.0239.93
5.1.30.2100.03010.34
5.1.20.2700.02310.42
5.1.10.2630.02710.14
5.1.00.2530.01710.13
5.0.50.1500.0178.50
5.0.40.1300.0238.40
5.0.30.1500.0408.37
5.0.20.1300.0208.22
5.0.10.1270.0208.15
5.0.00.1270.0308.19
4.4.90.1370.0105.86
4.4.80.1430.0135.84
4.4.70.1300.0235.83
4.4.60.1530.0135.76
4.4.50.1670.0205.90
4.4.40.1330.0205.81
4.4.30.1070.0135.89
4.4.20.1570.0135.91
4.4.10.1330.0135.95
4.4.00.1370.0275.92
4.3.110.1300.0175.75
4.3.100.1430.0175.80
4.3.90.0930.0135.78
4.3.80.0800.0235.78
4.3.70.0970.0135.78
4.3.60.1430.0105.70
4.3.50.1230.0135.73
4.3.40.1500.0235.64
4.3.30.0600.0175.32
4.3.20.0730.0175.32
4.3.10.0870.0235.32
4.3.00.0930.0205.32