3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Base { protected function func() { } } class Child extends Base { private function func() { } } $c = new Child();

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.180.0070.03412.36
5.4.170.0190.04912.38
5.4.160.0140.04212.37
5.4.150.0100.04712.37
5.4.140.0160.06912.05
5.4.130.0090.04512.04
5.4.120.0090.04312.00
5.4.110.0120.03811.99
5.4.100.0090.04111.99
5.4.90.0140.05211.99
5.4.80.0140.04011.99
5.4.70.0130.04311.99
5.4.60.0120.04111.99
5.4.50.0130.03611.99
5.4.40.0100.03811.98
5.4.30.0150.04911.97
5.4.20.0130.03611.97
5.4.10.0110.03811.97
5.4.00.0210.06011.47
5.3.270.0130.04712.72
5.3.260.0120.04612.72
5.3.250.0120.03912.72
5.3.240.0130.03812.72
5.3.230.0110.04212.71
5.3.220.0110.04412.68
5.3.210.0150.04212.68
5.3.200.0130.04512.68
5.3.190.0200.06412.67
5.3.180.0130.04712.68
5.3.170.0100.04212.67
5.3.160.0140.03912.67
5.3.150.0120.04112.67
5.3.140.0100.04512.66
5.3.130.0080.04412.66
5.3.120.0090.04312.66
5.3.110.0190.06812.66
5.3.100.0140.04212.12
5.3.90.0200.06412.09
5.3.80.0110.04312.08
5.3.70.0120.04612.08
5.3.60.0190.06712.08
5.3.50.0120.04212.01
5.3.40.0260.06312.01
5.3.30.0140.03611.97
5.3.20.0100.04111.75
5.3.10.0090.04011.71
5.3.00.0130.04011.70