3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class strings { function fix_string($a) { echo $a; } function fix_strings($b) { e echo $b;cho $b;echo $b; } } $s = new strings(); $ret = $s->fix_strings('Derick'); ?>
Output for 5.4.0 - 5.4.21
Parse error: syntax error, unexpected 'echo' (T_ECHO) in /in/PjmEr on line 9
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_ECHO in /in/PjmEr on line 9
Process exited with code 255.