3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ob_start(); function level(){ function level2(){ echo 'Text that won\'t get displayed.'; } } level(level2); echo "\n"; var_dump(ob_get_level()); ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Use of undefined constant level2 - assumed 'level2' in /in/aVIjD on line 8 int(1)