3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = []; var_dump($array['test'] ?: 'nope'); var_dump($array['test2']);
based on 49h0N
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.21.3, 7.0.0 - 7.3.0beta1
Notice: Undefined index: test in /in/8MR8G on line 5 string(4) "nope" Notice: Undefined index: test2 in /in/8MR8G on line 6 NULL
Output for hhvm-3.22.0
Notice: Undefined index: test in /in/8MR8G on line -1 string(4) "nope" Notice: Undefined index: test2 in /in/8MR8G on line -1 NULL