3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Core { protected static $_instance = null; public function __callStatic($method, $args) { if (static::$_instance === null) { static::$_instance = new static; } return call_user_func_array(array(static::$_instance, $method), $args) } } class ConstructCore extends Core { public function getModulesManager() { return 'manager'; } } var_dump(CostructCore::getModulesManager());

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.00.0070.04020.20
5.6.160.0070.04020.48
5.6.150.0030.08018.21
5.6.140.0000.06718.17
5.6.130.0030.05318.21
5.6.120.0000.04721.02
5.6.110.0030.07021.00
5.6.100.0030.04021.08
5.6.90.0300.05320.98
5.6.80.0070.07720.36
5.5.300.0030.04318.01
5.5.290.0030.05717.95
5.5.280.0100.05720.72
5.5.270.0070.06720.86
5.5.260.0030.08020.84
5.5.250.0030.08720.58
5.5.240.4030.04020.07

preferences:
137.06 ms | 1394 KiB | 7 Q