3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Person { public static function status() { self::getStatus(); } protected static function getStatus() { echo "Person is alive"; } } //If we call Person::status() we will see "Person is alive" . Now consider what happens when we make a class that inherits from this: //class Deceased extends Person { protected static function getStatus() { echo "Person is deceased"; } } Deceased::status()

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.230.0120.04112.40
5.4.220.0130.03812.39
5.4.210.0100.04412.39
5.4.200.0100.04112.40
5.4.190.0120.03712.39
5.4.180.0200.04712.39
5.4.170.0100.04112.40
5.4.160.0110.04212.39
5.4.150.0120.04012.39
5.4.140.0130.03912.08
5.4.130.0110.04012.06
5.4.120.0130.03612.03
5.4.110.0120.04212.02
5.4.100.0090.04212.02
5.4.90.0080.04312.02
5.4.80.0140.03612.02
5.4.70.0140.03812.02
5.4.60.0190.04712.02
5.4.50.0150.03812.02
5.4.40.0130.03812.01
5.4.30.0120.03812.00
5.4.20.0130.04612.00
5.4.10.0170.05212.00
5.4.00.0100.04711.50
5.3.280.0130.04712.71
5.3.270.0110.04612.73
5.3.260.0130.04112.72
5.3.250.0160.05412.72
5.3.240.0110.04312.72
5.3.230.0100.04412.71
5.3.220.0210.07712.68
5.3.210.0110.04512.68
5.3.200.0120.04212.68
5.3.190.0120.04312.68
5.3.180.0130.03812.67
5.3.170.0130.04312.67
5.3.160.0130.04512.67
5.3.150.0280.05812.67
5.3.140.0130.03912.66
5.3.130.0150.04612.66
5.3.120.0120.04212.66
5.3.110.0170.03812.66
5.3.100.0210.06312.12
5.3.90.0150.03612.10
5.3.80.0110.04012.08
5.3.70.0080.04412.09
5.3.60.0100.04312.07
5.3.50.0130.05512.02
5.3.40.0080.04512.01
5.3.30.0120.03811.97
5.3.20.0100.04211.75
5.3.10.0110.03911.72
5.3.00.0140.03711.70