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) { $this->fix_string($item); } } $s = new strings(); $ret = $s->fix_strings('Derick'); ?>
Output for 5.2.5 - 5.6.25, 7.0.0 - 7.1.0
Notice: Undefined variable: item in /in/eYK08 on line 10 Warning: implode(): Invalid arguments passed in /in/eYK08 on line 5
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: item in /in/eYK08 on line 10 Warning: Invalid operand type was used: implode() expects a container as one of the arguments in /in/eYK08 on line 5
Output for 5.0.4 - 5.2.4
Notice: Undefined variable: item in /in/eYK08 on line 10 Warning: implode(): Bad arguments. in /in/eYK08 on line 5
Output for 4.3.2 - 5.0.3
Notice: Undefined variable: item in /in/eYK08 on line 10 Warning: implode(): Bad arguments. in /in/eYK08 on line 5
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: item in /in/eYK08 on line 10 Warning: implode() [http://www.php.net/function.implode]: Bad arguments. in /in/eYK08 on line 5