3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array(); $array['index'] &= ''; var_dump($array);
Output for 7.1.0
Notice: Undefined index: index in /in/9N5Mq on line 4 Warning: A non-numeric value encountered in /in/9N5Mq on line 4 array(1) { ["index"]=> int(0) }
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.0.14
Notice: Undefined index: index in /in/9N5Mq on line 4 array(1) { ["index"]=> int(0) }
Output for hhvm-3.10.0 - 3.12.0
array(1) { ["index"]=> int(0) }
Output for 4.3.0 - 5.2.17
Notice: Undefined index: index in /in/9N5Mq on line 4 array(1) { ["index"]=> int(0) }