3v4l.org

run code in 300+ PHP versions simultaneously
<?php include_once('controller/contents.php') ?> <!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>PSNDL - Contents</title> <link rel="stylesheet" href="../assets/bootstrap/css/bootstrap.css" type="text/css"> </head> <body> <?php include_once('fragment/navbar.php') ?> <div class="container"> <div> <ul class="nav nav-tabs"> <li class="active"><a href="#tab_contents" data-toggle="tab">Database Contents</a></li> <li><a href="#tab_waiting_approval" data-toggle="tab">Waiting approval</a></li> <li><a href="#tab_download_database" data-toggle="tab">Download database</a></li> </ul> <div class="tab-content" id="tabs"> <!-- Database contents tab --> <div class="tab-pane fade active in" id="tab_contents"> <nav class="nav"> <h2 class="navbar-left">Packages</h2> <!-- Search form --> <form action="" class="navbar-form navbar-right" method="get"> <div class="form-group"> <input type="text" name="txt_search" class="form-control" placeholder="Search" value="<?php echo $keptSearch ?>"/> </div> <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button> </form> </nav> <?php if (count($packages) > 0) { ?> <table class="table table-hover table-bordered"> <thead> <tr> <th>ID</th> <th>Category</th> <th>Title</th> <th>Region</th> <th>Author</th> <th>Download count</th> <th>View package</th> <?php if ($hasEditPermission) echo '<th>Edit</th>' ?> </tr> </thead> <tbody> <?php foreach ($packages as $pkgEntry) { ?> <tr> <?php echo "<td>{$pkgEntry->getPackageID()}</td>" ?> <?php echo "<td>{$pkgEntry->getCategory()}</td>" ?> <?php echo "<td>{$pkgEntry->getTitle()}</td>" ?> <?php echo "<td>{$pkgEntry->getRegion()}</td>" ?> <?php echo "<td>{$pkgEntry->getAuthor()}</td>" ?> <?php echo "<td>{$pkgEntry->getDownloadCount()}</td>" ?> <?php echo "<td class='text-center'><a class='btn btn-primary' href='view_package.php?id={$pkgEntry->getID()}'>View package</a></td>" ?> <!-- Edit button --> <?php if ($hasEditPermission) echo "<td class='text-center'><a class='btn btn-success' href='edit_package.php?id={$pkgEntry->getID()}'>Edit</a></td>" ?> </tr> <?php } ?> </tbody> </table> <form action="contents.php"> <nav> <?php buildPackagesPager(); ?> </nav> </form> <?php } else { ?> <h5>No packages found.</h5> <?php } ?> </div> <!-- End database contents tab --> <!-- Waiting approval tab --> <div class="tab-pane" id="tab_waiting_approval"> <nav class="nav"> <h2 class="navbar-left">Pending packages</h2> </nav> <?php if (count($packagesWaiting) > 0) { ?> <table class="table table-hover table-bordered"> <thead> <tr> <th>ID</th> <th>Category</th> <th>Title</th> <th>Region</th> <th>Author</th> <th>Download count</th> <th>View package</th> <?php if ($hasEditPermission) echo '<th>Edit</th>' ?> </tr> </thead> <tbody> <?php foreach ($packagesWaiting as $pkgEntry) { ?> <tr> <?php echo "<td>{$pkgEntry->getPackageID()}</td>" ?> <?php echo "<td>{$pkgEntry->getCategory()}</td>" ?> <?php echo "<td>{$pkgEntry->getTitle()}</td>" ?> <?php echo "<td>{$pkgEntry->getRegion()}</td>" ?> <?php echo "<td>{$pkgEntry->getAuthor()}</td>" ?> <?php echo "<td>{$pkgEntry->getDownloadCount()}</td>" ?> <?php echo "<td class='text-center'><a class='btn btn-primary' href='view_package.php?id={$pkgEntry->getID()}'>View package</a></td>" ?> <!-- Edit button --> <?php if ($hasEditPermission) echo "<td class='text-center'><a class='btn btn-success' href='edit_package.php?id={$pkgEntry->getID()}'>Edit</a></td>" ?> </tr> <?php } ?> </tbody> </table> <?php } else { ?> <h5>No pending packages</h5> <?php } ?> </div> <!-- End waiting approval tab --> <!-- Download database tab --> <div class="tab-pane" id="tab_download_database"> <div class="jumbotron"> <h2>Downloading the database</h2> <p style="font-size: 16px"> Downloading the database is only useful for users who still want to use old PSNDLv1, PSNStuffX or any compatible software. <br/> Please note that I highly recommend you to get used to this website instead. </p> <a class="btn btn-primary btn-lg" href="/controller/download_database.php">Download</a> </div> </div> <!-- End download database tab --> </div> </div> </div> </body> </html>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: include_once(): open_basedir restriction in effect. File(controller/contents.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/VFbOu on line 1 Warning: include_once(controller/contents.php): Failed to open stream: Operation not permitted in /in/VFbOu on line 1 Warning: include_once(): Failed opening 'controller/contents.php' for inclusion (include_path='.:') in /in/VFbOu on line 1 <!DOCTYPE html> <html> <head> <meta charset="utf-8"/> <title>PSNDL - Contents</title> <link rel="stylesheet" href="../assets/bootstrap/css/bootstrap.css" type="text/css"> </head> <body> Warning: include_once(): open_basedir restriction in effect. File(fragment/navbar.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/VFbOu on line 11 Warning: include_once(fragment/navbar.php): Failed to open stream: Operation not permitted in /in/VFbOu on line 11 Warning: include_once(): Failed opening 'fragment/navbar.php' for inclusion (include_path='.:') in /in/VFbOu on line 11 <div class="container"> <div> <ul class="nav nav-tabs"> <li class="active"><a href="#tab_contents" data-toggle="tab">Database Contents</a></li> <li><a href="#tab_waiting_approval" data-toggle="tab">Waiting approval</a></li> <li><a href="#tab_download_database" data-toggle="tab">Download database</a></li> </ul> <div class="tab-content" id="tabs"> <!-- Database contents tab --> <div class="tab-pane fade active in" id="tab_contents"> <nav class="nav"> <h2 class="navbar-left">Packages</h2> <!-- Search form --> <form action="" class="navbar-form navbar-right" method="get"> <div class="form-group"> <input type="text" name="txt_search" class="form-control" placeholder="Search" value=" Warning: Undefined variable $keptSearch in /in/VFbOu on line 28 "/> </div> <button type="submit" class="btn btn-default"><span class="glyphicon glyphicon-search"></span></button> </form> </nav> Warning: Undefined variable $packages in /in/VFbOu on line 33 Fatal error: Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, null given in /in/VFbOu:33 Stack trace: #0 {main} thrown in /in/VFbOu on line 33
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:
42.53 ms | 404 KiB | 8 Q