3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a1 = array('a1','a2', 'a3','a4'); foreach($a1 as $a1) { $result='"'.implode("','",$a1).'"'; } echo $result;
Output for 5.2.5 - 5.6.28, 7.0.0 - 7.1.0
Warning: implode(): Invalid arguments passed in /in/R2t6J on line 6 Warning: implode(): Invalid arguments passed in /in/R2t6J on line 6 Warning: implode(): Invalid arguments passed in /in/R2t6J on line 6 Warning: implode(): Invalid arguments passed in /in/R2t6J on line 6 ""
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/R2t6J on line 6 Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/R2t6J on line 6 Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/R2t6J on line 6 Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/R2t6J on line 6 ""
Output for 4.3.2 - 5.2.4
Warning: implode(): Bad arguments. in /in/R2t6J on line 6 Warning: implode(): Bad arguments. in /in/R2t6J on line 6 Warning: implode(): Bad arguments. in /in/R2t6J on line 6 Warning: implode(): Bad arguments. in /in/R2t6J on line 6 ""
Output for 4.3.0 - 4.3.1
Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/R2t6J on line 6 Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/R2t6J on line 6 Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/R2t6J on line 6 Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/R2t6J on line 6 ""