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 ($array as $value) { $input = array_merge($array, $value["tag_name"]); } echo implode(', ', $letters); //$ids = array_column($input, 'tag_name'); //$output = implode(',', $ids);
based on UYDL4
Output for 5.2.5 - 7.2.0
Notice: Undefined variable: array in /in/eJ33U on line 12 Warning: Invalid argument supplied for foreach() in /in/eJ33U on line 12 Notice: Undefined variable: letters in /in/eJ33U on line 16 Warning: implode(): Invalid arguments passed in /in/eJ33U on line 16
Output for 5.1.1 - 5.2.4
Notice: Undefined variable: array in /in/eJ33U on line 12 Warning: Invalid argument supplied for foreach() in /in/eJ33U on line 12 Notice: Undefined variable: letters in /in/eJ33U on line 16 Warning: implode(): Bad arguments. in /in/eJ33U on line 16
Output for 5.1.0
Fatal error: fatal flex scanner internal error--end of buffer missed in /in/eJ33U on line 19
Process exited with code 255.
Output for 5.0.4 - 5.0.5
Warning: Invalid argument supplied for foreach() in /in/eJ33U on line 12 Notice: Undefined variable: letters in /in/eJ33U on line 16 Warning: implode(): Bad arguments. in /in/eJ33U on line 16
Output for 4.3.2 - 4.3.10, 4.4.0 - 5.0.3
Warning: Invalid argument supplied for foreach() in /in/eJ33U on line 12 Notice: Undefined variable: letters in /in/eJ33U on line 16 Warning: implode(): Bad arguments. in /in/eJ33U on line 16
Output for 4.3.11
Notice: Undefined variable: letters in /in/eJ33U on line 16 Warning: implode(): Bad arguments. in /in/eJ33U on line 16
Output for 4.3.0 - 4.3.1
Warning: Invalid argument supplied for foreach() in /in/eJ33U on line 12 Notice: Undefined variable: letters in /in/eJ33U on line 16 Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/eJ33U on line 16