3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php abstract class a { public static function my() { echo 'a'; } public function hi() { $class = get_called_class(); protected static $my = 'my'; $class::$my(); } } class b extends a { public static function my() { echo 'b'; } } $b = new b(); $b->hi();

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)
5.4.260.0170.04019.10
5.4.250.0170.04018.95
5.4.240.0130.04718.80
5.4.230.0130.04718.94
5.4.220.0070.05718.96
5.4.210.0200.06318.91
5.4.200.0130.04318.96
5.4.190.0100.05018.99
5.4.180.0130.04719.00
5.4.170.0170.05318.65
5.4.160.0030.07718.75
5.4.150.0100.07318.78
5.4.140.0130.04716.40
5.4.130.0030.07316.39
5.4.120.0100.04316.35
5.4.110.0130.05016.65
5.4.100.0030.05316.53
5.4.90.0030.05016.49
5.4.80.0100.04316.54
5.4.70.0070.07316.32
5.4.60.0030.05016.48
5.4.50.0100.05716.62
5.4.40.0070.06316.54
5.4.30.0070.05016.34
5.4.20.0200.04716.46
5.4.10.0130.04716.35
5.4.00.0030.05316.03
5.3.280.0100.04714.68
5.3.270.0100.04714.58
5.3.260.0000.07014.58
5.3.250.0100.04714.46
5.3.240.0130.04314.70
5.3.230.0130.04714.68
5.3.220.0130.04714.71
5.3.210.0100.05014.70
5.3.200.0070.06314.65
5.3.190.0070.05014.79
5.3.180.0130.04714.55
5.3.170.0000.05714.73
5.3.160.0030.06714.64
5.3.150.0170.04014.65
5.3.140.0100.06014.56
5.3.130.0030.06014.64
5.3.120.0030.05714.64
5.3.110.0100.05314.63
5.3.100.0200.05314.03
5.3.90.0030.05014.15
5.3.80.0100.06714.25
5.3.70.0130.04314.18
5.3.60.0130.04314.02
5.3.50.0130.05713.94
5.3.40.0070.07013.78
5.3.30.0100.05013.88
5.3.20.0170.05013.79
5.3.10.0000.06013.48
5.3.00.0070.06013.63
5.2.170.0070.03710.98
5.2.160.0070.03711.30
5.2.150.0100.04311.22
5.2.140.0030.05011.22
5.2.130.0070.04311.17
5.2.120.0100.03311.07
5.2.110.0070.05311.09
5.2.100.0070.04011.06
5.2.90.0130.03710.94
5.2.80.0100.04011.18
5.2.70.0000.04711.18
5.2.60.0000.04311.14
5.2.50.0000.04711.24
5.2.40.0000.05711.07
5.2.30.0000.04711.08
5.2.20.0030.04311.03
5.2.10.0100.04310.70
5.2.00.0200.03010.82
5.1.60.0000.03710.06
5.1.50.0000.04710.00
5.1.40.0030.04010.14
5.1.30.0100.03010.55
5.1.20.0070.03310.43
5.1.10.0030.03710.07
5.1.00.0030.03710.23
5.0.50.0030.0278.60
5.0.40.0070.0238.45
5.0.30.0000.0578.18
5.0.20.0000.0278.25
5.0.10.0030.0278.37
5.0.00.0070.0408.00
4.4.90.0070.0176.88
4.4.80.0030.0306.88
4.4.70.0030.0206.88
4.4.60.0030.0206.88
4.4.50.0070.0176.88
4.4.40.0070.0376.88
4.4.30.0070.0236.88
4.4.20.0070.0276.88
4.4.10.0000.0236.88
4.4.00.0030.0376.88
4.3.110.0030.0206.88
4.3.100.0100.0136.88
4.3.90.0000.0306.88
4.3.80.0070.0276.88
4.3.70.0000.0206.88
4.3.60.0000.0206.88
4.3.50.0070.0236.88
4.3.40.0030.0306.88
4.3.30.0000.0276.88
4.3.20.0000.0236.88
4.3.10.0000.0236.88
4.3.00.0100.0209.23