3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array("here","we","go"); $array1[2] = 'go'; $array1[1] = 'we'; $array1[0] = 'here'; $array2 = array('here'); $array2[2] = 'go'; $array2[1] = 'we'; $array2[0] = 'here'; $str1 = implode(',',$array1); $str2 = implode(',',$array2); echo $str1; echo "<br/>"; echo $str2;
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
here,we,go<br/>here,go,we