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; } catch (Throwable $thrown) { var_dump((string) $thorwn); } ?>
Output for 8.2.0 - 8.2.28, 8.3.0 - 8.3.22, 8.4.1 - 8.4.8

preferences:
45.35 ms | 406 KiB | 5 Q