3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
Warning: require_once(): open_basedir restriction in effect. File(inc/config.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/pBYE1 on line 2 Warning: require_once(inc/config.php): Failed to open stream: Operation not permitted in /in/pBYE1 on line 2 Fatal error: Uncaught Error: Failed opening required 'inc/config.php' (include_path='.:') in /in/pBYE1:2 Stack trace: #0 {main} thrown in /in/pBYE1 on line 2
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
43.52 ms | 402 KiB | 8 Q