3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Core { protected static $_instance = null; public static function __callStatic($method, $args) { if (static::$_instance === null) { static::$_instance = new static; } return static::$_instance->$method($args); //return call_user_func_array(array(static::$_instance, $method), $args); } } class ConstructCore extends Core { public function getModulesManager() { return 'manager'; } } var_dump(ConstructCore::getModulesManager());
based on O6ve4
Output for 7.0.0 - 7.2.0
Deprecated: Non-static method ConstructCore::getModulesManager() should not be called statically in /in/Tlhpi on line 27 string(7) "manager"
Output for 5.3.20 - 5.6.28
Strict Standards: Non-static method ConstructCore::getModulesManager() should not be called statically in /in/Tlhpi on line 27 string(7) "manager"