3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function on_shutdown(){ echo "<!--\n"; echo "\n\tHeaders Sent:"; $file = $line = null; headers_sent($file, $line); echo "\n\t\t$file: $line"; echo "\n\tLast Error:"; echo "\n\t\t"; if(error_get_last()) foreach(error_get_last() as $k=>$v) echo "\n\t\t$k: $v"; else echo "\n\t\tnone"; echo "\n\tIncluded Files:"; echo "\n\t\t"; echo implode("\n\t\t", get_included_files()); echo "\n-->"; } register_shutdown_function('on_shutdown'); while(ob_get_level())ob_end_clean(); ob_implicit_flush(true);
Output for 5.2.0 - 5.6.28, 7.0.0 - 7.1.0
<!-- Headers Sent: /in/q8cnn: 3 Last Error: none Included Files: /in/q8cnn -->
Output for hhvm-3.10.0 - 3.12.0
<!-- Headers Sent: : Last Error: none Included Files: /in/q8cnn -->
Output for 5.0.0 - 5.1.6
<!-- Headers Sent: /in/q8cnn: 3 Last Error: Fatal error: Call to undefined function error_get_last() in /in/q8cnn on line 10
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<!-- Headers Sent: /in/q8cnn: 3 Last Error: Fatal error: Call to undefined function: error_get_last() in /in/q8cnn on line 10
Process exited with code 255.
Output for 4.3.3 - 4.4.4
<!-- Headers Sent: /in/q8cnn: 3 Last Error: Fatal error: Call to undefined function: error_get_last() in /in/q8cnn on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.2
<!-- Headers Sent: /in/q8cnn: 3 Last Error: Fatal error: Call to undefined function: error_get_last() in /in/q8cnn on line 10