3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); set_error_handler(function() { echo "Caught an error:\n"; print_r(func_get_args()); }, -1); try { new DateTimeZone("Twilight zone"); } catch (Exception $e) { // ignore } echo "Checking the last error:\n"; print_r(error_get_last());

preferences:
40.46 ms | 402 KiB | 5 Q