3v4l.org

run code in 300+ PHP versions simultaneously
<?php class other{ public static function foo(){echo "bingo";} } class my_class { protected static $class_name = "other"; public function method() { self::$class_name::foo(); } } new my_class()->method();

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)
8.4.70.0500.00718.18
8.4.60.0420.00918.18
8.4.50.0410.01118.18
8.4.40.0210.00518.18
8.4.30.0200.00718.18
8.4.20.0210.00418.18
8.4.10.0410.00818.18
8.3.210.0380.00618.18
8.3.200.0230.00818.18
8.3.190.0330.01118.18
8.3.180.0210.00618.18
8.3.170.0280.00818.18
8.3.160.0460.00618.18
8.3.150.0440.00818.18
8.3.140.0410.00818.18
8.3.130.0390.00718.18
8.3.120.0340.01118.18
8.3.110.0360.00918.18
8.3.100.0360.01618.18
8.3.90.0420.00918.18
8.3.80.0450.00518.18
8.3.70.0350.01518.18
8.3.60.0430.00918.18
8.3.50.0370.00818.18
8.3.40.0320.00618.18
8.3.30.0270.00318.18
8.3.20.0210.00118.18
8.3.10.0310.00518.18
8.3.00.0350.00518.18
8.2.280.0350.00618.18
8.2.270.0310.01018.18
8.2.260.0350.00818.18
8.2.250.0330.01018.18
8.2.240.0330.00818.18
8.2.230.0320.01318.18
8.2.220.0340.00818.18
8.2.210.0280.00518.18
8.2.200.0160.00618.18
8.2.190.0300.00618.18
8.2.180.0320.00718.18
8.2.170.0370.00818.18
8.2.160.0310.00618.18
8.2.150.0170.00318.18
8.2.140.0190.00518.18
8.2.130.0190.00518.18
8.2.120.0290.01218.18
8.2.110.0360.00718.18
8.2.100.0250.00418.18
8.2.90.0150.00418.18
8.2.80.0240.00518.18
8.2.70.0220.00618.18
8.2.60.0180.00318.18
8.2.50.0340.00918.18
8.2.40.0510.00918.18
8.2.30.0330.00718.18
8.2.20.0310.00918.18
8.2.10.0350.00618.18
8.2.00.0220.00418.18

preferences:
142.82 ms | 1005 KiB | 7 Q