3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $select_option=array(array("id"=>"",val=>"")); $combo_arr= @array_merge($select_option,$combo_arr); print_r($combo_arr);
Output for 7.2.0
Warning: Use of undefined constant val - assumed 'val' (this will throw an Error in a future version of PHP) in /in/vdtUf on line 2
Output for 5.0.0 - 7.1.10
Notice: Use of undefined constant val - assumed 'val' in /in/vdtUf on line 2
Output for 4.3.0 - 4.4.9
Notice: Use of undefined constant val - assumed 'val' in /in/vdtUf on line 2 Array ( [0] => Array ( [id] => [val] => ) )