3v4l.org

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