3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function exception_error_handler($errno, $errstr, $errfile, $errline ) { throw new Exception('Hello world'); } set_error_handler("exception_error_handler"); try { // try loading a file that does not have exif data: $results = @require 'does-not-exist.php'; } catch (Exception $e) { echo $e->getMessage(); // "We never get here..." };
based on U9bu8
Output for 5.5.0 - 7.2.6

Process exited with code 255.