3v4l.org

run code in 300+ PHP versions simultaneously
<?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::getStatus()

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).

VersionSystem time (s)User time (s)Memory (MiB)
5.4.230.0120.04212.40
5.4.220.0120.03812.39
5.4.210.0150.03612.39
5.4.200.0100.04212.40
5.4.190.0100.04112.39
5.4.180.0120.04012.39
5.4.170.0150.03912.40
5.4.160.0110.04312.39
5.4.150.0090.04712.39
5.4.140.0090.04312.08
5.4.130.0130.04112.06
5.4.120.0120.03912.03
5.4.110.0120.03812.02
5.4.100.0130.03812.02
5.4.90.0110.04112.03
5.4.80.0110.04112.03
5.4.70.0080.04312.02
5.4.60.0120.03912.02
5.4.50.0110.03912.02
5.4.40.0110.03912.01
5.4.30.0120.03912.01
5.4.20.0080.04312.00
5.4.10.0100.04012.01
5.4.00.0100.03911.49
5.3.280.0130.04312.71
5.3.270.0140.04212.72
5.3.260.0120.04212.72
5.3.250.0110.04312.72
5.3.240.0100.04212.72
5.3.230.0100.04312.71
5.3.220.0130.04112.68
5.3.210.0160.04412.68
5.3.200.0130.04712.68
5.3.190.0130.04712.68
5.3.180.0100.04512.67
5.3.170.0120.04512.67
5.3.160.0100.05112.67
5.3.150.0150.03912.67
5.3.140.0110.04212.66
5.3.130.0130.04212.66
5.3.120.0120.04712.66
5.3.110.0340.08012.66
5.3.100.0150.04412.12
5.3.90.0090.05012.09
5.3.80.0150.04412.08
5.3.70.0130.04312.09
5.3.60.0100.04212.07
5.3.50.0110.04212.01
5.3.40.0100.04212.01
5.3.30.0130.04511.98
5.3.20.0130.04811.75
5.3.10.0130.04711.72
5.3.00.0100.04911.70

preferences:
141.35 ms | 1394 KiB | 7 Q