3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*E_ERROR E_PARSE E_CORE_ERROR E_CORE_WARNING E_COMPILE_ERROR E_COMPILE_WARNING E_STRICT*/ function exception_error_handler($errno, $errstr, $errfile, $errline) { echo 'as'; } set_error_handler("exception_error_handler", error_reporting()); class Strict { public function test() { echo "Test"; } } Strict::test();

preferences:
39.9 ms | 402 KiB | 5 Q