3v4l.org

run code in 300+ PHP versions simultaneously
<?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();
Output for 8.0.10 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
start memory / time tracking Fatal error: Uncaught TypeError: call_user_func(): Argument #1 ($callback) must be a valid callback, non-static method target::startCrawler() cannot be called statically in /in/Jumoq:19 Stack trace: #0 /in/Jumoq(25): adapter::__callStatic('startCrawler', Array) #1 {main} thrown in /in/Jumoq on line 19
Process exited with code 255.
Output for 8.0.0 - 8.0.9
start memory / time tracking Fatal error: Uncaught TypeError: call_user_func(): Argument #1 ($function) must be a valid callback, non-static method target::startCrawler() cannot be called statically in /in/Jumoq:19 Stack trace: #0 /in/Jumoq(25): adapter::__callStatic('startCrawler', Array) #1 {main} thrown in /in/Jumoq on line 19
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
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 7.3.32 - 7.3.33
start memory / time trackingcrawler stateend memory / time tracking
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
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

preferences:
226.11 ms | 402 KiB | 377 Q