3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $labels_array=array("Element 1","Element 2","Element 3","Element 4","Element 5","Element 6"); echo implode("\n",implode('',array_chunk($labels_array,1)));
Output for 5.2.5 - 7.1.0
Notice: Array to string conversion in /in/EEHcX on line 3 Notice: Array to string conversion in /in/EEHcX on line 3 Notice: Array to string conversion in /in/EEHcX on line 3 Notice: Array to string conversion in /in/EEHcX on line 3 Notice: Array to string conversion in /in/EEHcX on line 3 Notice: Array to string conversion in /in/EEHcX on line 3 Warning: implode(): Invalid arguments passed in /in/EEHcX on line 3
Output for 4.3.2 - 5.2.4
Notice: Array to string conversion in /in/EEHcX on line 3 Notice: Array to string conversion in /in/EEHcX on line 3 Notice: Array to string conversion in /in/EEHcX on line 3 Notice: Array to string conversion in /in/EEHcX on line 3 Notice: Array to string conversion in /in/EEHcX on line 3 Notice: Array to string conversion in /in/EEHcX on line 3 Warning: implode(): Bad arguments. in /in/EEHcX on line 3
Output for 4.3.0 - 4.3.1
Notice: Array to string conversion in /in/EEHcX on line 3 Notice: Array to string conversion in /in/EEHcX on line 3 Notice: Array to string conversion in /in/EEHcX on line 3 Notice: Array to string conversion in /in/EEHcX on line 3 Notice: Array to string conversion in /in/EEHcX on line 3 Notice: Array to string conversion in /in/EEHcX on line 3 Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/EEHcX on line 3