3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function($errNo, $errStr) { throw new Exception($errStr, $errNo); }); $one = 1; $zero = 0; try { $infinity = $one / $zero; } catch (Exception $e) { echo "You will see me now, I caught this exception: " . $e->getMessage(); }

preferences:
57.47 ms | 405 KiB | 6 Q