3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a1 = array('a1','a2', 'a3','a4'); $result=""; foreach ($a1 as $a2) { $result.='"'.$a2.'"'; } $comma_separated = implode(",", $result); $comma_separated;
Output for 5.2.5 - 7.1.0
Warning: implode(): Invalid arguments passed in /in/YbhZ1 on line 10
Output for 4.3.2 - 5.2.4
Warning: implode(): Bad arguments. in /in/YbhZ1 on line 10
Output for 4.3.0 - 4.3.1
Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/YbhZ1 on line 10