3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { static $someFunction; // Throws error. static function foo() { {static::$someFunction}(); } // Works static function bar() { $func = static::$someFunction; $func(); } } A::$someFunction = function() { print "wtf\n";}; A::bar(); A::foo();

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)
7.0.10.0030.09720.23
7.0.00.0030.07320.10
5.6.160.0100.05320.46
5.6.150.0100.07318.25
5.6.140.0000.09018.14
5.6.130.0070.07718.27
5.6.120.0070.08720.97
5.6.110.0070.09020.98
5.6.100.0000.04721.02
5.6.90.0100.07320.96
5.6.80.0130.08020.49
5.5.300.0100.06017.92
5.5.290.0130.08018.07
5.5.280.0000.08720.73
5.5.270.0030.04020.79
5.5.260.0200.08020.73
5.5.250.0070.08320.79
5.5.240.0100.05720.04

preferences:
150.77 ms | 1398 KiB | 7 Q