3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class target { public function startCrawler() { echo 'crawler state'; } } class adapter { private static $class = ''; public function __construct($classname) { self::$class = $classname; } public static function __callStatic($method,$args) { echo 'start memory / time tracking'; call_user_func(array(self::$class,$method),$args); echo 'end memory / time tracking'; } } $obj = new adapter('target'); $obj::startCrawler();
based on PGgZB
Output for 7.0.0 - 7.2.0
start memory / time tracking Deprecated: Non-static method target::startCrawler() should not be called statically in /in/Jumoq on line 19 crawler stateend memory / time tracking
Output for 5.3.18 - 5.6.28
start memory / time tracking Strict Standards: call_user_func() expects parameter 1 to be a valid callback, non-static method target::startCrawler() should not be called statically in /in/Jumoq on line 19 crawler stateend memory / time tracking