3v4l.org

run code in 300+ PHP versions simultaneously
<?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);

preferences:
39.52 ms | 402 KiB | 5 Q