3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php header_register_callback(function () { echo 'header'; register_shutdown_function(function () { ob_end_flush(); echo 'shutdown'; }); }); ob_start(); echo ' output ';
based on 7tTPY
Output for 5.5.0 - 7.2.6
header output