3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php require_once('inc/config.php'); require_once('header.php'); $botid = preg_replace("/[^0-9]/","",$_GET['id']); ?> <div class="grid_24"> <!-- Box Header: Start --> <div class="box_top"> <h2 class="icon typography">Logs for bot <?php echo $botid; ?></h2> </div> <!-- Box Header: End --> <!-- Box Content: Start --> <div class="box_content padding"> <div style="float: left; display: inline; width: 265px; word-break: break-all; word-wrap: break-word;"> <?php if(file_exists("uploads/".$botid.".html")) { echo file_get_contents("uploads/".$botid.".html"); } else{ echo 'No logs!'; } ?> </div> </div> <?php include("html/footer.php"); ?>
Output for 5.1.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: require_once(inc/config.php): failed to open stream: No such file or directory in /in/pBYE1 on line 2 Fatal error: require_once(): Failed opening required 'inc/config.php' (include_path='.:') in /in/pBYE1 on line 2
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: File not found: inc/config.php in /in/pBYE1 on line 2
Process exited with code 255.
Output for 4.3.2 - 5.0.5
Warning: main(inc/config.php): failed to open stream: No such file or directory in /in/pBYE1 on line 2 Fatal error: main(): Failed opening required 'inc/config.php' (include_path='.:') in /in/pBYE1 on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: main(inc/config.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/pBYE1 on line 2 Fatal error: main() [http://www.php.net/function.main]: Failed opening required 'inc/config.php' (include_path='.:') in /in/pBYE1 on line 2