3v4l.org

run code in 300+ PHP versions simultaneously
<?php $match = []; set_error_handler (function ($a,$B,$C,$W,$q){ var_dump("qwqew", $a, $B,$C,$W,$q); },E_NOTICE); try { $match[1]; } catch (\Exception $e) { echo 'Exception:' . $e->getMessage(); }

preferences:
40.62 ms | 402 KiB | 5 Q