3v4l.org

run code in 200+ 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 7.2.0
Warning: Use of undefined constant level2 - assumed 'level2' (this will throw an Error in a future version of PHP) in /in/aVIjD on line 8 int(1)
Output for 4.3.0 - 7.1.10
Notice: Use of undefined constant level2 - assumed 'level2' in /in/aVIjD on line 8 int(1)