3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function myCallback($buffer, $flags) { if ($flags & PHP_OUTPUT_HANDLER_START) { exit('Server: LastMinuteHeaderServer'); } } ob_start('myCallback'); echo "Hello World!"; ob_end_flush();
based on FuvBE
Output for 5.3.19 - 5.3.29, 5.4.7 - 5.6.28, 7.0.1 - 7.2.0
Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0
Process exited with code 255.
Output for 7.0.0
Catchable fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0
Process exited with code 255.
Output for 5.4.0 - 5.4.6
Fatal error: Unknown: Cannot use output buffering in output buffering display handlers in Unknown on line 0