3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $sent_a = headers_sent(); ob_end_clean(); // or ob_clean(); etc.. $sent_b = headers_sent(); var_dump($sent_a); var_dump($sent_b); exit;
Output for 5.3.4 - 7.1.0
Notice: ob_end_clean(): failed to delete buffer. No buffer to delete in /in/ltI0q on line 4 bool(false) bool(true)
Output for 5.2.3 - 5.3.3
Notice: ob_end_clean(): failed to delete buffer. No buffer to delete. in /in/ltI0q on line 4 bool(false) bool(true)
Output for 4.3.2 - 5.2.2
Notice: ob_end_clean(): failed to delete buffer. No buffer to delete. in /in/ltI0q on line 4 bool(true) bool(true)
Output for 4.3.0 - 4.3.1
Notice: ob_end_clean() [http://www.php.net/ref.outcontrol]: failed to delete buffer. No buffer to delete. in /in/ltI0q on line 4 bool(true) bool(true)