3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $labels_array = array("Element1","Element2","Element3","Element4","Element5","Element6"); for($i=0;$i<count($labels_array);$i++) { echo($labels_array[$i]); if($i % 2 != 0) { echo("\n"); }else{echo(",");} } ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Element1,Element2 Element3,Element4 Element5,Element6