3v4l.org

run code in 200+ php & hhvm versions
<?php set_error_handler(function ($level, $message, $file = '', $line = 0) { throw new ErrorException($message, 0, $level, $file, $line); }); try { $a = 1/0; } catch (Throwable $e) { echo "Come on, you cant't divide by zero!"; }
Output for 7.1.25 - 7.4.0beta4
Come on, you cant't divide by zero!