3v4l.org

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

preferences:
57.06 ms | 402 KiB | 5 Q