3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = array( array( 'tag_name' => 'google' ), array( 'tag_name' => 'technology' ) ); $letters = array(); foreach ($input as $value) { $letters = array_merge($letters, $value["tag_name"]); } echo implode(', ', $letters); //$ids = array_column($input, 'tag_name'); //$output = implode(',', $ids);
based on gTAbJ
Output for 5.3.0 - 7.2.0
Warning: array_merge(): Argument #2 is not an array in /in/ChVr3 on line 13 Warning: array_merge(): Argument #1 is not an array in /in/ChVr3 on line 13 Warning: implode(): Invalid arguments passed in /in/ChVr3 on line 16
Output for 5.2.5 - 5.2.17
Warning: array_merge(): Argument #2 is not an array in /in/ChVr3 on line 13 Warning: array_merge(): Argument #1 is not an array in /in/ChVr3 on line 13 Warning: array_merge(): Argument #2 is not an array in /in/ChVr3 on line 13 Warning: implode(): Invalid arguments passed in /in/ChVr3 on line 16
Output for 5.0.0 - 5.0.5, 5.1.1 - 5.2.4
Warning: array_merge(): Argument #2 is not an array in /in/ChVr3 on line 13 Warning: array_merge(): Argument #1 is not an array in /in/ChVr3 on line 13 Warning: array_merge(): Argument #2 is not an array in /in/ChVr3 on line 13 Warning: implode(): Bad arguments. in /in/ChVr3 on line 16
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/ChVr3 on line 19
Process exited with code 255.
Output for 4.3.0 - 4.4.9
google, technology