3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo() { function bar() { echo 'Hello!'; } bar(); bar(); bar(); } foo(); foo();
Output for 4.3.2 - 7.2.0
Hello!Hello!Hello! Fatal error: Cannot redeclare bar() (previously declared in /in/FMEFB:6) in /in/FMEFB on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Hello!Hello!Hello! Fatal error: Cannot redeclare bar() (previously declared in /in/FMEFB:6) in /in/FMEFB on line 5