3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $name = "tommy" ; headers_sent($filename, $linenum) ; header("name: $name") ; echo "tommy <br>" ; echo "Headers sent in $filename on line $linenum" ; ?>
Output for 4.3.0 - 5.6.28, 7.0.0 - 7.1.0
tommy <br>Headers sent in on line 0
Output for hhvm-3.10.0 - 3.12.0
tommy <br>Headers sent in on line