3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public static function foo() { static::who(); } public static function who() { echo __CLASS__."\n"; } } class B extends A { public static function test() { A::foo(); parent::foo(); self::foo(); } public static function who() { echo __CLASS__."\n"; } } class C extends B { public static function who() { echo __CLASS__."\n"; } } C::test();
based on sjbrZ

Here you find the average performance (time & memory) of each version. A greyed 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.00619.29
7.1.100.0080.00517.71
7.1.70.0040.00816.91
7.1.60.0160.01034.73
7.1.50.0230.00734.40
7.1.40.0270.01734.29
7.1.30.0260.01634.11
7.1.20.0160.01234.32
7.1.10.0000.01316.46
7.1.00.0060.00916.44
7.0.200.0040.00816.57
7.0.190.0060.01316.64
7.0.180.0120.00916.10
7.0.170.0030.01016.34
7.0.160.0060.00616.25
7.0.150.0040.00816.39
7.0.140.0060.00616.00
7.0.130.0070.00716.62
7.0.120.0060.00616.49
7.0.110.0090.00416.20
7.0.100.0100.00316.45
7.0.90.0050.00816.02
7.0.80.0080.00516.23
7.0.70.0030.01316.46
7.0.60.0060.00616.03
7.0.50.0090.00516.18
7.0.40.0070.00716.30
7.0.30.0000.01316.16
7.0.20.0090.00416.41
7.0.10.0030.01016.38
7.0.00.0060.00916.45
hhvm-3.15.40.0510.13787.74
5.6.300.0000.06220.75
5.6.290.0090.05321.01
5.6.280.0030.06020.83
5.6.270.0100.05321.09
5.6.260.0100.05321.04
5.6.250.0000.06020.81
5.6.240.0070.05620.91
5.6.230.0130.05520.79
5.6.220.0060.05720.79
5.6.210.0070.06021.09
5.6.200.0030.06020.81
5.6.190.0100.05420.77
5.6.180.0130.04720.88
5.6.170.0060.05520.73
5.6.160.0140.04720.86
5.6.150.0190.04520.74
5.6.140.0070.05920.80
5.6.130.0070.05620.75
5.6.120.0100.05620.88
5.6.110.0070.05920.73
5.6.100.0100.05721.02
5.6.90.0130.05020.75
5.6.80.0090.05420.35
5.6.70.0030.05820.36
5.6.60.0070.05820.31
5.6.50.0130.04520.16
5.6.40.0100.04920.32
5.6.30.0130.04920.12
5.6.20.0070.05320.12
5.6.10.0070.05120.13
5.6.00.0130.04620.11