3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class target { public static function startCrawler() { echo 'crawler state'; } } abstract 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'; } } adapter('target')::startCrawler();
based on 3sX1L
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function adapter() in /in/5UACF:24 Stack trace: #0 {main} thrown in /in/5UACF on line 24
Process exited with code 255.
Output for 5.4.2 - 5.6.28
Parse error: syntax error, unexpected '::' (T_PAAMAYIM_NEKUDOTAYIM) in /in/5UACF on line 24
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected T_PAAMAYIM_NEKUDOTAYIM in /in/5UACF on line 24
Process exited with code 255.