3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ob_start(); $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.2.3 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
bool(false) bool(false)
Output for 4.3.0 - 5.2.2
bool(true) bool(true)