3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function on_shutdown(){ ?><!-- Headers Sent: <?php $file = $line = null; headers_sent($file, $line); echo "\n\t\t$file: $line"; ?> Last Error: <?php echo "\n\t\t"; if(error_get_last()) foreach(error_get_last() as $k=>$v) echo "\n\t\t$k: $v"; ?> Included Files: <?php echo "\n\t\t"; echo implode("\n\t\t", get_included_files()); ?> --><?php } register_shutdown_function('on_shutdown');
Output for 5.2.0 - 7.1.0
<!-- Headers Sent: /in/oQfOi: 4 Last Error: Included Files: /in/oQfOi-->
Output for 5.0.0 - 5.1.6
<!-- Headers Sent: /in/oQfOi: 4 Last Error: <br /> <b>Fatal error</b>: Call to undefined function error_get_last() in <b>/in/oQfOi</b> on line <b>11</b><br />
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<!-- Headers Sent: /in/oQfOi: 4 Last Error: <br /> <b>Fatal error</b>: Call to undefined function: error_get_last() in <b>/in/oQfOi</b> on line <b>11</b><br />
Process exited with code 255.
Output for 4.3.3 - 4.4.4
<!-- Headers Sent: /in/oQfOi: 4 Last Error: <br /> <b>Fatal error</b>: Call to undefined function: error_get_last() in <b>/in/oQfOi</b> on line <b>11</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.2
<!-- Headers Sent: /in/oQfOi: 4 Last Error: <br /> <b>Fatal error</b>: Call to undefined function: error_get_last() in <b>/in/oQfOi</b> on line <b>11</b><br />