3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $someArray = []; $someArray[] = "one"; $someArray[] = "two"; $someArray[] = "three"; $someArray[] = "four"; $anotherArray = []; $anotherArray[] = ","; $anotherArray[] = ":"; $anotherArray[] = "/"; $anotherArray[] = "-"; echo(implode($someArray, ',')); echo "\n"; echo(implode(',', $someArray)); echo "\n"; echo(implode($someArray, $anotherArray));
based on Jb5kN
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.6
one,two,three,four one,two,three,four Notice: Array to string conversion in /in/7nssN on line 19 oneArraytwoArraythreeArrayfour