3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $match = []; set_error_handler (function ($a,$B,$C){ var_dump("qwqew", $a, $B,$C); },E_NOTICE); try { $match[1]; } catch (\Exception $e) { echo 'Exception:' . $e->getMessage(); }
based on Z1TMh
Output for 5.6.30, 7.0.30 - 7.3.0alpha1
string(5) "qwqew" int(8) string(19) "Undefined offset: 1" string(9) "/in/4M831"
Output for hhvm-3.18.5 - 3.22.0
string(5) "qwqew" int(8) string(18) "Undefined index: 1" string(9) "/in/4M831"