3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start(); require_once 'includes/db.php'; require_once 'includes/init.php'; if (!($user -> LoggedIn())) { header('location: login.php'); die(); } if (!($user->hasMembership($odb))) { header('location: purchase.php'); die(); } if (!($user -> notBanned($odb))) { header('location: login.php'); die(); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title><?php echo $title_prefix; ?>Skype Resolver</title> <?php include 'includes/css.php';?> </head> <body> <?php include 'sidebar.php'; ?> <!-- Right side --> <div id="rightSide"> <?php include 'header.php';?> <!-- Title area --> <div class="titleArea"> <div class="wrapper"> <div class="pageTitle"> <h3>Skype Resolver</h3> </div> <div class="clear"></div> </div> </div> <div class="line"></div> <!-- Main content wrapper --> <div class="wrapper"> <!-- Form --> <?php $resolved = ''; if (isset($_POST['resolveBtn'])) { $name = $_POST['skypeName']; $resolved = @file_get_contents ("http://Skypeapihere.com/skype={$name}"); } ?> <form class="form" method="POST" action=""> <fieldset> <div class="widget"> <div class="title"><img src="images/icons/dark/list.png" alt="" class="titleIcon" /><h6>Skype Resolver</h6></div> <div class="formRow"> <label>Skype Name</label> <div class="formRight"><input type="text" name="skypeName" value="<?php echo $name; ?>" id="skypeName"/></div> <div class="clear"></div> </div> <div class="formRow"> <?php echo $resolved;?> <input type="submit" value="Resolve" name="resolveBtn" class="dblueB logMeIn" /> <div class="clear"></div> </div> </div> </fieldset> </form> </div> <!-- Footer line --> <?php include 'footer.php';?> </div> <div class="clear"></div> </body> </html>
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: require_once(): open_basedir restriction in effect. File(includes/db.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/tmqud on line 3 Warning: require_once(includes/db.php): Failed to open stream: Operation not permitted in /in/tmqud on line 3 Fatal error: Uncaught Error: Failed opening required 'includes/db.php' (include_path='.:') in /in/tmqud:3 Stack trace: #0 {main} thrown in /in/tmqud on line 3
Process exited with code 255.
Output for 8.0.13
Warning: require_once(includes/db.php): Failed to open stream: No such file or directory in /in/tmqud on line 3 Fatal error: Uncaught Error: Failed opening required 'includes/db.php' (include_path='.:') in /in/tmqud:3 Stack trace: #0 {main} thrown in /in/tmqud on line 3
Process exited with code 255.
Output for 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.10, 7.2.0, 7.3.32 - 7.3.33, 7.4.33
Warning: require_once(includes/db.php): failed to open stream: No such file or directory in /in/tmqud on line 3 Fatal error: require_once(): Failed opening required 'includes/db.php' (include_path='.:') in /in/tmqud on line 3
Process exited with code 255.
Output for 7.1.26 - 7.1.33, 7.2.17 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.32
Warning: require_once(): open_basedir restriction in effect. File(includes/db.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/tmqud on line 3 Warning: require_once(includes/db.php): failed to open stream: Operation not permitted in /in/tmqud on line 3 Fatal error: require_once(): Failed opening required 'includes/db.php' (include_path='.:') in /in/tmqud on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5
Warning: main(includes/db.php): failed to open stream: No such file or directory in /in/tmqud on line 3 Fatal error: main(): Failed opening required 'includes/db.php' (include_path='.:') in /in/tmqud on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: main(includes/db.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/tmqud on line 3 Fatal error: main() [http://www.php.net/function.main]: Failed opening required 'includes/db.php' (include_path='.:') in /in/tmqud on line 3

preferences:
267.62 ms | 402 KiB | 383 Q