3v4l.org

run code in 300+ PHP versions simultaneously
<?php class strings { function fix_string($a) { echo implode("",$a); } function fix_string($b) { echo implode("",$a); } } $s = new strings(); $ret = $s->fix_string(array('Derick','der','dere')); ?>
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.21
Fatal error: Cannot redeclare strings::fix_string() in /in/atHCu on line 8
Process exited with code 255.

preferences:
180.81 ms | 1395 KiB | 57 Q