3v4l.org

run code in 300+ PHP versions simultaneously
<?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','der','dere')); ?>

preferences:
67.03 ms | 402 KiB | 5 Q