3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { private $foo = 'bar'; } class B extends A { public function setFoo($foo) { return $this->{chr(0) . 'A' . chr(0) . 'foo'} = $foo; } public function getFoo() { return $this->{chr(0) . 'A' . chr(0) . 'foo'}; } } $b = new B(); $b->setFoo('baz'); var_dump($b->getFoo());

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.0210.01298.97
7.3.0rc30.0130.00916.56
7.3.0beta10.0030.00612.75
7.3.0alpha10.0030.00713.02
7.2.80.0060.00616.57
7.2.60.0060.00316.81
7.2.50.0100.00316.58
7.1.200.0040.01115.75
7.1.70.0050.00317.05
7.1.60.0130.00619.40
7.1.50.0030.02016.82
7.1.00.0030.03322.46
7.0.200.0000.00816.86
7.0.140.0070.07322.09
7.0.120.0000.07722.11
7.0.60.0470.05019.95
7.0.50.0070.08017.97
7.0.40.0070.04320.27
7.0.30.0530.07320.15
7.0.20.0400.07020.07
7.0.10.0130.05020.10
7.0.00.0070.08320.07
5.6.280.0000.07021.16
5.6.210.0000.05720.48
5.6.200.0130.08018.16
5.6.190.0130.03720.67
5.6.180.0300.07320.63
5.6.170.0270.08720.62
5.6.160.0070.06720.44
5.6.150.0100.08018.15
5.6.140.0070.05318.11
5.6.130.0070.07718.26
5.6.120.0070.08321.03
5.6.110.0200.07320.98
5.6.100.0200.06321.01
5.6.90.0030.08720.98
5.6.80.0200.07720.29
5.5.350.0170.06720.31
5.5.340.0070.08717.99
5.5.330.0100.04320.44
5.5.320.0230.05020.25
5.5.310.0230.08020.28
5.5.300.0070.03717.95
5.5.290.0000.08717.98
5.5.280.0000.05020.97
5.5.270.0100.06320.77
5.5.260.0030.05720.73
5.5.250.0070.04320.79
5.5.240.0100.05020.16
5.4.450.0100.08019.18
5.4.440.0030.08319.57
5.4.430.0000.06019.19
5.4.420.0100.05019.52
5.4.410.0070.05319.45
5.4.400.0170.06719.08
5.4.390.0000.07319.23
5.4.380.0100.05319.20
5.4.370.0100.03719.24
5.4.360.0030.06719.24
5.4.350.0130.07019.08
5.4.340.0000.08319.15
5.4.320.0030.08319.25
5.4.310.0030.04319.20
5.4.300.0070.07319.24
5.4.290.0070.07319.12
5.4.280.0030.04318.92
5.4.270.0170.04318.85
5.4.260.0030.06719.19
5.4.250.0000.07718.84
5.4.240.0030.08318.92
5.4.230.0030.08019.14
5.4.220.0200.06718.84
5.4.210.0100.07019.19
5.4.200.0030.07019.14
5.4.190.0030.08018.84
5.4.180.0170.03318.84
5.4.170.0070.07318.84
5.4.160.0030.07719.22
5.4.150.0130.06319.14
5.4.140.0070.06316.38
5.4.130.0000.06016.42
5.4.120.0130.04716.42
5.4.110.0130.03316.38
5.4.100.0070.06016.44
5.4.90.0030.05016.47
5.4.80.0030.04716.45
5.4.70.0030.03716.57
5.4.60.0070.04016.37
5.4.50.0000.04016.37
5.4.40.0100.07016.27
5.4.30.0070.05316.38
5.4.20.0100.05316.27
5.4.10.0070.07016.39
5.4.00.0100.04715.86
5.3.290.0000.04714.82
5.3.280.0070.05014.75
5.3.270.0170.03314.66
5.3.260.0070.05014.61
5.3.250.0030.07314.50
5.3.240.0100.06014.79
5.3.230.0030.08014.61
5.3.220.0100.08014.58
5.3.210.0070.08014.63
5.3.200.0000.08714.61
5.3.190.0070.04314.59
5.3.180.0030.04714.57
5.3.170.0070.06014.61
5.3.160.0100.03714.57
5.3.150.0030.08014.62
5.3.140.0000.05014.61
5.3.130.0030.08714.57
5.3.120.0000.08314.63
5.3.110.0070.07714.63
5.3.100.0030.06714.20
5.3.90.0030.07714.07
5.3.80.0070.06314.03
5.3.70.0130.05714.17
5.3.60.0100.05713.90
5.3.50.0030.06014.11
5.3.40.0000.06014.11
5.3.30.0000.04713.94
5.3.20.0070.07013.77
5.3.10.0070.05713.83
5.3.00.0030.07313.68
5.2.170.0030.06711.08
5.2.160.0130.05311.21
5.2.150.0000.03711.11
5.2.140.0000.05711.04
5.2.130.0070.04011.07
5.2.120.0030.04311.12
5.2.110.0070.06311.07
5.2.100.0030.05311.00
5.2.90.0100.03011.16
5.2.80.0070.04011.16
5.2.70.0030.06311.12
5.2.60.0030.03311.06
5.2.50.0000.04010.94
5.2.40.0070.05710.95
5.2.30.0130.05310.93
5.2.20.0070.05711.02
5.2.10.0100.05710.76
5.2.00.0070.04710.79
5.1.60.0000.04010.02
5.1.50.0100.05310.02
5.1.40.0030.0609.89
5.1.30.0000.05010.31
5.1.20.0000.03010.50
5.1.10.0030.04710.12
5.1.00.0070.05010.09
5.0.50.0030.0338.55
5.0.40.0030.0438.50
5.0.30.0070.0678.23
5.0.20.0100.0238.20
5.0.10.0000.0378.09
5.0.00.0000.0508.21
4.4.90.0100.0137.91
4.4.80.0030.0307.91
4.4.70.0000.0407.91
4.4.60.0030.0337.91
4.4.50.0130.0177.91
4.4.40.0000.0577.91
4.4.30.0070.0337.91
4.4.20.0000.0177.91
4.4.10.0000.0377.91
4.4.00.0000.0377.91
4.3.110.0000.0377.91
4.3.100.0000.0377.91
4.3.90.0000.0377.91
4.3.80.0000.0407.91
4.3.70.0000.0307.91
4.3.60.0100.0177.91
4.3.50.0000.0377.91
4.3.40.0030.0337.91
4.3.30.0030.0177.91
4.3.20.0000.0207.91
4.3.10.0000.0337.91
4.3.00.0000.0237.91