3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function outer() { function inner($echoval) { echo $echoval; } } outer(); inner('First Run'); outer(); inner('Second Run');
Output for 4.3.2 - 7.1.0
First Run Fatal error: Cannot redeclare inner() (previously declared in /in/85KaS:4) in /in/85KaS on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
First Run Fatal error: Cannot redeclare inner() (previously declared in /in/85KaS:4) in /in/85KaS on line 4