3v4l.org

run code in 150+ 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 - 5.6.21, 7.0.0 - 7.1.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 hhvm-3.10.0 - 3.12.0
test Warning: Cannot modify header information - headers already sent in /in/oihcq on line 3 <pre>bool(true) <pre>
Output for 4.3.0 - 5.2.2
test<pre>bool(true) <pre>