3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ob_start(); function level(){ function level2(){ function echo 'Text that won\'t get displayed.'; } } level(); level2(); echo "\n"; var_dump(ob_get_level()); ?>
Output for 5.4.0 - 5.4.21
Parse error: syntax error, unexpected 'echo' (T_ECHO), expecting identifier (T_STRING) or '(' in /in/2Ik2C on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_ECHO, expecting T_STRING or '(' in /in/2Ik2C on line 5
Process exited with code 255.