3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo () {} function bar () { function baz () {} /* Aufruf möglich */ baz(); } baz(); // Fatal error: Call to undefined function baz() bar(); // okay baz(); // okay bar(); // Fatal error: Cannot redeclare baz()
based on ulXiO
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught Error: Call to undefined function baz() in /in/D526d:13 Stack trace: #0 {main} thrown in /in/D526d on line 13
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Call to undefined function baz() in /in/D526d on line 13
Process exited with code 255.