3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function goInclude() { function privateFunction() { echo 'i dont want to access this function from other files'; } } privateFunction(); //i dont want to this work
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function privateFunction() in /in/SFlrU:13 Stack trace: #0 {main} thrown in /in/SFlrU on line 13
Process exited with code 255.
Output for 5.3.20 - 5.6.21
Fatal error: Call to undefined function privateFunction() in /in/SFlrU on line 13
Process exited with code 255.