3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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 7.2.0
Warning: include_once(controller/contents.php): failed to open stream: No such file or directory 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(fragment/navbar.php): failed to open stream: No such file or directory 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=" Notice: 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> Notice: Undefined variable: packages in /in/VFbOu on line 33 Warning: count(): Parameter must be an array or an object that implements Countable in /in/VFbOu on line 33 <h5>No packages found.</h5> </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> Notice: Undefined variable: packagesWaiting in /in/VFbOu on line 80 Warning: count(): Parameter must be an array or an object that implements Countable in /in/VFbOu on line 80 <h5>No pending packages</h5> </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 5.3.19 - 7.1.10
Warning: include_once(controller/contents.php): failed to open stream: No such file or directory 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(fragment/navbar.php): failed to open stream: No such file or directory 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=" Notice: 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> Notice: Undefined variable: packages in /in/VFbOu on line 33 <h5>No packages found.</h5> </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> Notice: Undefined variable: packagesWaiting in /in/VFbOu on line 80 <h5>No pending packages</h5> </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>