3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array('sorgenti',array('1','2','3','4','5')); foreach($array as $r){ $comma_separated = implode(",", $r[1]); echo $comma_separated; // lastname,email,phone } ?>
Output for 5.2.5 - 5.6.28, 7.0.0 - 7.1.0
Warning: implode(): Invalid arguments passed in /in/rWU1X on line 4 Warning: implode(): Invalid arguments passed in /in/rWU1X on line 4
Output for hhvm-3.12.0
Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/rWU1X on line 4 Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/rWU1X on line 4
Output for hhvm-3.10.0
Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/rWU1X on line 26 Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/rWU1X on line 26
Output for 4.3.2 - 5.2.4
Warning: implode(): Bad arguments. in /in/rWU1X on line 4 Warning: implode(): Bad arguments. in /in/rWU1X on line 4
Output for 4.3.0 - 4.3.1
Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/rWU1X on line 4 Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/rWU1X on line 4