3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class strings { function fix_string($a) { echo implode("",$a); } function fix_strings($b) { foreach ($b as $item) { $this->fix_string($item); } } } $s = new strings(); $ret = $s->fix_strings(array('Derick')); ?>
Output for 5.2.5 - 7.1.0
Warning: implode(): Invalid arguments passed in /in/AKgM5 on line 5
Output for 4.3.2 - 5.2.4
Warning: implode(): Bad arguments. in /in/AKgM5 on line 5
Output for 4.3.0 - 4.3.1
Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/AKgM5 on line 5