3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class strings { function fix_string($a) { echo implode("",$a); } function fix_string($b) { foreach ($b as $item) { $this->fix_string($item); } } } $s = new strings(); $ret = $s->fix_string(array('Derick','der','dere')); ?>
Output for 5.3.0 - 5.4.21
Fatal error: Cannot redeclare strings::fix_string() in /in/ei2u5 on line 8
Process exited with code 255.