3v4l.org

run code in 300+ PHP versions simultaneously
<?php set_error_handler(function (int $code, string $message, string $file, int $line) : never { throw new ErrorException($message, $code, E_NOTICE, $file, $line); }, ~0); try { $zero = 0 / 0; } catch (Throwable $thrown) { var_dump((string) $thorwn); } ?>

preferences:
33.57 ms | 405 KiB | 5 Q