3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class MakeMeCMS_Addon_Abstract { static protected $_ver = 0.1; static protected $_list = []; static protected function add($addon) { self::$_list += [$addon=>$addon]; } static protected function check($addon) { if(isset($_list[$addon]) && class_exists($_list[$addon].'_Master') && method_exists($_list[$addon].'_Master', Main())): return true; else: return false; endif; } } MakeMeCMS_Addon_Call { private $_state = false; public function set($arg) { $this->_state = $arg; } public function state() { return $this->_state; } } class myAddon_Master extends MakeMeCMS_Addon_Abstract { static public $callable_from_templates = true; static public function Main(MakeMeCMS_Addon_Call $call) { parent::add('myAddon'); $call->set(true); return $call; } static public function hello() { echo('Hello World!'); } } $sysCall = new MakeMeCMS_Addon_Call; myAddon_Master::Main($sysCall); myAddon::hello();

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.6.150.0070.04318.19
5.6.140.0100.05718.23
5.6.130.0070.04018.29
5.6.120.0100.06021.11
5.6.110.0000.07021.05
5.6.100.0100.08021.09
5.6.90.0100.08320.97
5.6.80.0030.04020.54
5.5.300.0030.04018.09
5.5.290.0130.05018.05
5.5.280.0170.07720.88
5.5.270.0000.04320.80
5.5.260.0100.07020.75
5.5.250.0070.04320.47
5.5.240.0130.03320.26

preferences:
133.45 ms | 1394 KiB | 7 Q