3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($no, $str, $file, $line) { throw new ErrorException($str, 0, $no, $file, $line); }); try { trigger_error("You dun made a mistaek", E_WARNING); } catch(\Exception $e) { echo "Halp! I cant rite teh codez: " . $e->getMessage() . "\n" . $e->getTraceAsString(); }

preferences:
34.29 ms | 402 KiB | 5 Q