3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { static function register() { set_error_handler(array(get_called_class(), 'handleError')); } static function handleError() { echo 'ERROR!!!'; } } Foo::register(); assert(is_string(null));

preferences:
46.2 ms | 402 KiB | 5 Q