3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = array( array( 'tag_name' => 'google' ), array( 'tag_name' => 'technology' ) ); foreach ($array as $value) { $input = array_merge($input, $value); } echo implode(', ', $input);
based on eJ33U
Output for 5.1.0 - 7.2.0
Notice: Undefined variable: array in /in/fm2Dr on line 11 Warning: Invalid argument supplied for foreach() in /in/fm2Dr on line 11 Notice: Array to string conversion in /in/fm2Dr on line 15 Notice: Array to string conversion in /in/fm2Dr on line 15 Array, Array
Output for 4.3.0 - 4.3.10, 4.4.0 - 5.0.5
Warning: Invalid argument supplied for foreach() in /in/fm2Dr on line 11 Notice: Array to string conversion in /in/fm2Dr on line 15 Notice: Array to string conversion in /in/fm2Dr on line 15 Array, Array
Output for 4.3.11
Notice: Array to string conversion in /in/fm2Dr on line 15 Notice: Array to string conversion in /in/fm2Dr on line 15 Array, Array