3v4l.org

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

preferences:
51.61 ms | 402 KiB | 5 Q