3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { static $someFunction = function($yey) { return 'lol'; } // 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.09020.16
7.0.00.0170.07320.30
5.6.160.0130.07320.54
5.6.150.0000.04318.12
5.6.140.0100.03718.27
5.6.130.0070.04318.25
5.6.120.0100.05321.12
5.6.110.0070.04321.11
5.6.100.0070.04321.11
5.6.90.0130.08320.95
5.6.80.0200.05720.41
5.5.300.0100.07717.98
5.5.290.0100.03317.98
5.5.280.0170.06720.64
5.5.270.0070.08720.86
5.5.260.0170.07720.73
5.5.250.0130.07720.65
5.5.240.0100.06720.23

preferences:
142.15 ms | 1394 KiB | 7 Q