3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if (@readfile('/foo') === false) { echo "foo"; } header('HTTP/1.1 404 Not Found');
based on TkECJ
Output for 5.2.3 - 5.6.28, 7.0.0 - 7.1.0
foo Warning: Cannot modify header information - headers already sent by (output started at /in/3B28W:4) in /in/3B28W on line 6
Output for hhvm-3.12.0
foo Warning: Cannot modify header information - headers already sent in /in/3B28W on line 6
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.2.2
foo