3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { static function register() { set_error_handler(array(static, 'handleError')); } static function handleError() { echo 'ERROR!!!'; } } Foo::register(); assert(is_string(null));
Output for 5.4.0 - 5.5.11
Parse error: syntax error, unexpected ',', expecting :: (T_PAAMAYIM_NEKUDOTAYIM) in /in/9OQWl on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected ',', expecting T_PAAMAYIM_NEKUDOTAYIM in /in/9OQWl on line 6
Process exited with code 255.