3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $data['id'] = 'dsoifjdsf:dsfoijdsoi:dofds'; $mapping = explode(':', $data['id'], 1); $data['meta'] = array_merge($data['meta'], array('parameter' => reset($mapping)));
Output for 5.3.0 - 5.6.21, 7.0.0 - 7.1.0
Notice: Undefined index: meta in /in/nL7Jm on line 4 Warning: array_merge(): Argument #1 is not an array in /in/nL7Jm on line 4
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined index: meta in /in/nL7Jm on line 4 Warning: array_merge() expects parameter 1 to be array, null given in /in/nL7Jm on line 4
Output for 5.0.0 - 5.2.17
Notice: Undefined index: meta in /in/nL7Jm on line 4 Warning: array_merge(): Argument #1 is not an array in /in/nL7Jm on line 4
Output for 4.3.0 - 4.4.9
Notice: Undefined index: meta in /in/nL7Jm on line 4