3v4l.org

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