3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function foo() {} function foo() {}
Output for 5.3.0 - 5.5.12
Fatal error: Cannot redeclare foo() (previously declared in /in/5lNP6:2) in /in/5lNP6 on line 3
Process exited with code 255.