3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo() { function bar() { echo "surprise!\n"; } } var_dump(function_exists('bar')); foo(); var_dump(function_exists('bar'));
Output for 5.5.0 - 7.3.1
bool(false) bool(true)