3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function a() { function b() { echo "This is ok, right?"; } } a(); a();
Output for 4.3.2 - 7.2.0
Fatal error: Cannot redeclare b() (previously declared in /in/kc3f2:3) in /in/kc3f2 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot redeclare b() (previously declared in /in/kc3f2:3) in /in/kc3f2 on line 3