3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { private $private = 'private'; public $public = 'public'; } $r = new \ReflectionClass('A'); $p = $r->getProperty('private'); $p->setAccessible(true); $p->setAccessible(false); var_dump($p->getValue(new A())); $p = $r->getProperty('public'); $p->setAccessible(false); var_dump($p->getValue(new A()));

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.0190.00398.97
7.3.0rc30.0180.01116.44
7.3.0beta10.0060.00012.84
7.3.0alpha10.0040.00812.59
7.2.60.0100.00316.64
7.2.00.0000.01519.16
7.1.200.0070.00715.82
7.1.100.0490.00615.27
7.1.70.0090.00016.95
7.1.60.0030.01419.40
7.1.50.0130.00716.80
7.1.00.0070.07722.27
7.0.200.0060.00316.84
7.0.140.0070.07021.95
7.0.60.0030.08320.02
7.0.50.0100.08317.99
7.0.40.0070.07317.75
7.0.30.0200.06017.76
7.0.20.0100.08017.71
7.0.10.0100.07717.75
7.0.00.0070.04017.85
5.6.280.0000.07321.09
5.6.210.0070.08320.76
5.6.200.0070.07318.18
5.6.190.0070.08318.28
5.6.180.0070.08318.16
5.6.170.0100.03718.29
5.6.160.0070.04318.18
5.6.150.0070.06018.19
5.6.140.0170.07018.18
5.6.130.0100.04718.21
5.6.120.0170.07318.19
5.6.110.0100.08018.18
5.6.100.0070.06718.14
5.6.90.0130.04718.21
5.6.80.0030.08317.53
5.6.70.0100.04317.55
5.6.60.0070.07717.58
5.6.50.0100.05317.54
5.6.40.0030.04717.57
5.6.30.0100.07317.51
5.6.20.0030.04017.52
5.6.10.0070.04717.51
5.6.00.0070.07717.57
5.5.350.0130.08720.36
5.5.340.0100.08017.99
5.5.330.0070.08317.98
5.5.320.0030.08717.98
5.5.310.0100.05318.07
5.5.300.0170.07017.99
5.5.290.0100.05017.95
5.5.280.0130.08017.95
5.5.270.0170.07717.98
5.5.260.0070.06718.00
5.5.250.0030.09017.88
5.5.240.0170.05317.37
5.5.230.0200.05317.36
5.5.220.0100.07317.29
5.5.210.0030.07317.43
5.5.200.0070.04317.29
5.5.190.0230.06317.27
5.5.180.0070.08017.38
5.5.160.0100.06717.44
5.5.150.0130.07017.34
5.5.140.0000.08017.36
5.5.130.0170.06717.33
5.5.120.0030.04017.36
5.5.110.0100.04017.39
5.5.100.0170.05017.20
5.5.90.0030.04017.32
5.5.80.0030.07717.23
5.5.70.0030.07317.26
5.5.60.0030.04717.20
5.5.50.0130.07317.29
5.5.40.0070.07317.27
5.5.30.0170.07017.18
5.5.20.0000.07717.20
5.5.10.0030.08017.19
5.5.00.0130.05317.18
5.4.450.0070.08319.46
5.4.440.0070.08019.34
5.4.430.0130.07019.39
5.4.420.0170.05319.32
5.4.410.0170.06019.32
5.4.400.0070.07019.06
5.4.390.0070.07719.03
5.4.380.0070.07318.88
5.4.370.0170.06719.03
5.4.360.0030.07019.03
5.4.350.0100.07719.03
5.4.340.0070.04019.27
5.4.320.0130.07019.13
5.4.310.0130.06019.09
5.4.300.0070.04719.01
5.4.290.0030.07719.03
5.4.280.0070.08019.05
5.4.270.0030.04019.13
5.4.260.0030.08319.13
5.4.250.0070.04319.11
5.4.240.0130.06719.02
5.4.230.0070.07318.95
5.4.220.0170.06718.94
5.4.210.0170.06319.09
5.4.200.0030.05719.04
5.4.190.0030.08019.00
5.4.180.0070.07319.08
5.4.170.0100.08018.96
5.4.160.0100.04719.07
5.4.150.0100.04719.02
5.4.140.0100.05716.43
5.4.130.0070.04716.29
5.4.120.0100.05716.31
5.4.110.0130.05016.42
5.4.100.0070.07016.47
5.4.90.0130.06716.38
5.4.80.0070.05716.28
5.4.70.0100.06316.22
5.4.60.0030.04316.27
5.4.50.0070.06316.27
5.4.40.0070.04316.38
5.4.30.0100.06716.32
5.4.20.0030.03716.45
5.4.10.0070.03716.39
5.4.00.0000.04315.74
5.3.290.0100.07314.67
5.3.280.0070.08014.55
5.3.270.0000.06314.64
5.3.260.0030.05014.82
5.3.250.0100.04314.61
5.3.240.0070.08014.81
5.3.230.0130.04314.62
5.3.220.0100.06314.62
5.3.210.0030.06714.66
5.3.200.0070.07314.57
5.3.190.0100.06314.59
5.3.180.0030.05014.41
5.3.170.0070.07714.78
5.3.160.0030.05014.55
5.3.150.0000.05314.52
5.3.140.0070.04714.59
5.3.130.0130.04014.58
5.3.120.0070.06714.60
5.3.110.0000.04014.53
5.3.100.0030.03714.00
5.3.90.0000.04014.05
5.3.80.0070.03314.05
5.3.70.0030.03714.03
5.3.60.0000.03714.21
5.3.50.0030.03314.00
5.3.40.0030.03313.98
5.3.30.0030.03713.95
5.3.20.0030.03313.73
5.3.10.0000.03713.69
5.3.00.0030.03313.85
5.2.170.0000.03311.13
5.2.160.0000.03011.13
5.2.150.0070.02310.98
5.2.140.0000.03011.16
5.2.130.0000.03011.30
5.2.120.0030.02711.13
5.2.110.0000.03011.14
5.2.100.0000.03011.11
5.2.90.0000.03311.15
5.2.80.0000.03011.13
5.2.70.0000.03011.09
5.2.60.0000.03011.04
5.2.50.0030.03010.91
5.2.40.0070.02311.03
5.2.30.0030.03010.97
5.2.20.0030.02710.99
5.2.10.0030.03010.91
5.2.00.0070.02310.73
5.1.60.0000.0239.96
5.1.50.0000.02310.02
5.1.40.0000.0239.81
5.1.30.0000.02710.21
5.1.20.0030.02310.34
5.1.10.0030.02310.16
5.1.00.0030.02310.05
5.0.50.0000.0208.75
5.0.40.0000.0238.47
5.0.30.0000.0308.20
5.0.20.0030.0178.23
5.0.10.0030.0178.13
5.0.00.0000.0308.23
4.4.90.0000.0137.74
4.4.80.0000.0137.74
4.4.70.0030.0177.74
4.4.60.0030.0137.74
4.4.50.0000.0177.74
4.4.40.0000.0277.74
4.4.30.0030.0137.74
4.4.20.0000.0137.74
4.4.10.0000.0137.74
4.4.00.0000.0237.74
4.3.110.0000.0177.74
4.3.100.0000.0137.74
4.3.90.0000.0137.74
4.3.80.0000.0237.74
4.3.70.0070.0107.74
4.3.60.0070.0277.74
4.3.50.0070.0137.74
4.3.40.0100.0477.74
4.3.30.0000.0377.74
4.3.20.0030.0307.74
4.3.10.0030.0377.74
4.3.00.0000.0377.74