3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo 'test'; header('Content-type: text/html; charset=utf8'); echo '<pre>'; var_dump(headers_sent()); echo '<pre>';
Output for 5.2.3 - 7.2.0
test Warning: Cannot modify header information - headers already sent by (output started at /in/oihcq:2) in /in/oihcq on line 3 <pre>bool(true) <pre>
Output for 4.3.0 - 5.2.2
test<pre>bool(true) <pre>