3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php extract($config); ?> <!DOCTYPE html> <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--> <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--><html class="no-js" lang="en"> <!--<![endif]--> <head> <!-- Basic Page Needs ================================================== --> <meta charset="utf-8"> <title>Home - UK Sports Blog - The Quiet Man Lets Out A Roar</title> <meta name="description" content="The Quiet Man Lets Out a Roar Homepage - UK Sports blog covering Football, Cricket and Tennis (among others)"> <meta name="author" content="Martin Heavens"> <!-- Mobile Specific Metas ================================================== --> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- CSS ================================================== --> <link rel="stylesheet" href="stylesheets/base.css"> <link rel="stylesheet" href="stylesheets/skeleton.css"> <link rel="stylesheet" href="stylesheets/layout.css"> <link rel="stylesheet" href="../stylesheets/base.css"> <link rel="stylesheet" href="../stylesheets/skeleton.css"> <link rel="stylesheet" href="../stylesheets/layout.css"> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Favicons ================================================== --> <link rel="shortcut icon" href="Images/favicon.ico"> <link rel="apple-touch-icon" href="Images/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="72x72" href="Images/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="114x114" href="Images/apple-touch-icon-114x114.png"> <!-- Get latest Javascript & Modernizr ================================================== --> <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> <script src="javascript/modernizr-2.7.1.min.js"></script> <!-- Google Analytics ================================================== --> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-39012813-1', 'thequietmanletsoutaroar.com'); ga('send', 'pageview'); </script> <!-- PHP-based styling for drop-down menu ================================================== --> <style> nav.primary ul li:hover ul { height:<?= ($config['links']+1)*35 ?>px;} </style> <!-- Base href for site ================================================== --> <base href="<?=$base?>"> </head> <body> <a name="top"></a> <div class="band"> <header class="container main headband"> <div class="sixteen columns"> <h1 class="logo1"><a href="index.php">The Quiet Man<br/>Lets Out A Roar</a></h1> <h3>What the commentators leave out.</h3> </div><!--end sixteen columns--> </header><!--end header--> <nav class="container primary"> <div class="sixteen columns"> <ul> <li><a href="index.php">Home</a></li> <li><a href="article.php?id=<?= $allposts[0]['id']; ?>">The Back Page</a> <ul> <?php $i = 0; foreach ($allposts as $post) { if( $i < $config['links'] && $post['published'] ) : extract($post); ?> <li><a href="article.php?id=<?= $id; ?>"><span>- </span><?= $title; ?></a></li> <?php $i++; endif; } ?> <li><a href="archive.php">More...</a></li> </ul> </li> <li><a href="about.php">About</a></li> </ul> <?php if( is_logged_in() ) : ?> <ul class="nav-admin"> <li><a href="admin/create.php">Create Post</a></li> <li><a href="admin/dashboard.php">Dashboard</a></li> <li><a href="admin/settings.php">Settings</a></li> <li><a href="admin/logout.php">Logout</a></li> </ul> <?php endif; ?> </div><!--end sixteen columns--> </nav><!--end nav--> <div class="container canvas"> <!-- CONTENT GOES HERE --> <?php include($path); ?> <!-- END OF CONTENT --> </div><!-- container --> <div class="band bottom"> <footer class="container"> <div class="sixteen columns middle-credit"> <a href="#top">Back to Top</a> </div><!--end middle credit--> <div class="eight columns first-credit"> <p><span class="dot">&#8226; </span> The Quiet Man Lets Out a Roar <span class="dot">&#8226; </span> &copy; Martin Heavens 2014 <span class="dot">&#8226;</span> All rights reserved <span class="dot">&#8226;</span> </p> </div><!--end first credit--> <div class="eight columns last-credit"> <p><span class="dot">&#8226; </span>Powered by Skeleton <span class="dot">&#8226; </span>Designed & developed by Martin Heavens <span class="dot">&#8226; </span><a href="admin/">Admin </a><span class="dot">&#8226;</span></p> </div><!--end last credit--> <div class="sixteen columns overall-credit"> <p><span class="dot">&#8226; </span> The Quiet Man Lets Out a Roar <span class="dot">&#8226; </span> &copy; Martin Heavens 2014 <span class="dot">&#8226;</span> All rights reserved <span class="dot">&#8226; </span>Powered by Skeleton <span class="dot">&#8226; </span>Designed & developed by Martin Heavens <span class="dot">&#8226;</span><a href="admin/">Admin </a><span class="dot">&#8226;</span></p> </div><!--end last credit--> </footer><!--end footer--> </div><!--end band bottom --> <!-- JS ================================================== --> <!--Slider--> <script src="javascript/jquery.flexslider.js"></script> <!--Instantiate Javascript plugins --> <script src="javascript/plugins.js"></script> <!--Tabs--> <script src="javascript/tabs.js"></script> <!--jQuery validate--> <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"></script> <!--Other javascript--> <script> // Create "Latest post" label on first article on index (function(){ var post = <?= $allposts[0]['id']; ?>; $('#tab1 article:first-child').find('p.trail a:last-child').html("Latest Post").attr("href", "article.php?id=" + post); })(); // Submit pop-up $(document).ready(function(){ // hide popup when user clicks on close button $('#closebtn').click(function(){ $('#popupbg').hide(); // hide the overlay }); $('#linkbtn').click(function(){ $(location).attr('href','admin/dashboard.php'); $('#popupbg').hide(); // hide the overlay }); // hides the popup if user clicks anywhere outside the container $('#popupbg').click(function(){ $('#popupbg').hide(); }) // prevents the overlay from closing if user clicks inside the popup overlay $('#popupcontent').click(function(){ return false; }); }); </script> <!-- End Document ================================================== --> </body> </html>
Output for 7.0.0 - 7.1.0
Warning: extract() expects parameter 1 to be array, null given in /in/L5Th8 on line 1 <!DOCTYPE html> <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--> <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--><html class="no-js" lang="en"> <!--<![endif]--> <head> <!-- Basic Page Needs ================================================== --> <meta charset="utf-8"> <title>Home - UK Sports Blog - The Quiet Man Lets Out A Roar</title> <meta name="description" content="The Quiet Man Lets Out a Roar Homepage - UK Sports blog covering Football, Cricket and Tennis (among others)"> <meta name="author" content="Martin Heavens"> <!-- Mobile Specific Metas ================================================== --> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- CSS ================================================== --> <link rel="stylesheet" href="stylesheets/base.css"> <link rel="stylesheet" href="stylesheets/skeleton.css"> <link rel="stylesheet" href="stylesheets/layout.css"> <link rel="stylesheet" href="../stylesheets/base.css"> <link rel="stylesheet" href="../stylesheets/skeleton.css"> <link rel="stylesheet" href="../stylesheets/layout.css"> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Favicons ================================================== --> <link rel="shortcut icon" href="Images/favicon.ico"> <link rel="apple-touch-icon" href="Images/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="72x72" href="Images/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="114x114" href="Images/apple-touch-icon-114x114.png"> <!-- Get latest Javascript & Modernizr ================================================== --> <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> <script src="javascript/modernizr-2.7.1.min.js"></script> <!-- Google Analytics ================================================== --> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-39012813-1', 'thequietmanletsoutaroar.com'); ga('send', 'pageview'); </script> <!-- PHP-based styling for drop-down menu ================================================== --> <style> nav.primary ul li:hover ul { height:35px;} </style> <!-- Base href for site ================================================== --> <base href=" Notice: Undefined variable: base in /in/L5Th8 on line 67 "> </head> <body> <a name="top"></a> <div class="band"> <header class="container main headband"> <div class="sixteen columns"> <h1 class="logo1"><a href="index.php">The Quiet Man<br/>Lets Out A Roar</a></h1> <h3>What the commentators leave out.</h3> </div><!--end sixteen columns--> </header><!--end header--> <nav class="container primary"> <div class="sixteen columns"> <ul> <li><a href="index.php">Home</a></li> <li><a href="article.php?id= Notice: Undefined variable: allposts in /in/L5Th8 on line 84 ">The Back Page</a> <ul> Notice: Undefined variable: allposts in /in/L5Th8 on line 87 Warning: Invalid argument supplied for foreach() in /in/L5Th8 on line 87 <li><a href="archive.php">More...</a></li> </ul> </li> <li><a href="about.php">About</a></li> </ul> Fatal error: Uncaught Error: Call to undefined function is_logged_in() in /in/L5Th8:99 Stack trace: #0 {main} thrown in /in/L5Th8 on line 99
Process exited with code 255.
Output for 5.4.0 - 5.6.28
Warning: extract() expects parameter 1 to be array, null given in /in/L5Th8 on line 1 <!DOCTYPE html> <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--> <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--><html class="no-js" lang="en"> <!--<![endif]--> <head> <!-- Basic Page Needs ================================================== --> <meta charset="utf-8"> <title>Home - UK Sports Blog - The Quiet Man Lets Out A Roar</title> <meta name="description" content="The Quiet Man Lets Out a Roar Homepage - UK Sports blog covering Football, Cricket and Tennis (among others)"> <meta name="author" content="Martin Heavens"> <!-- Mobile Specific Metas ================================================== --> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- CSS ================================================== --> <link rel="stylesheet" href="stylesheets/base.css"> <link rel="stylesheet" href="stylesheets/skeleton.css"> <link rel="stylesheet" href="stylesheets/layout.css"> <link rel="stylesheet" href="../stylesheets/base.css"> <link rel="stylesheet" href="../stylesheets/skeleton.css"> <link rel="stylesheet" href="../stylesheets/layout.css"> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Favicons ================================================== --> <link rel="shortcut icon" href="Images/favicon.ico"> <link rel="apple-touch-icon" href="Images/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="72x72" href="Images/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="114x114" href="Images/apple-touch-icon-114x114.png"> <!-- Get latest Javascript & Modernizr ================================================== --> <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> <script src="javascript/modernizr-2.7.1.min.js"></script> <!-- Google Analytics ================================================== --> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-39012813-1', 'thequietmanletsoutaroar.com'); ga('send', 'pageview'); </script> <!-- PHP-based styling for drop-down menu ================================================== --> <style> nav.primary ul li:hover ul { height:35px;} </style> <!-- Base href for site ================================================== --> <base href=" Notice: Undefined variable: base in /in/L5Th8 on line 67 "> </head> <body> <a name="top"></a> <div class="band"> <header class="container main headband"> <div class="sixteen columns"> <h1 class="logo1"><a href="index.php">The Quiet Man<br/>Lets Out A Roar</a></h1> <h3>What the commentators leave out.</h3> </div><!--end sixteen columns--> </header><!--end header--> <nav class="container primary"> <div class="sixteen columns"> <ul> <li><a href="index.php">Home</a></li> <li><a href="article.php?id= Notice: Undefined variable: allposts in /in/L5Th8 on line 84 ">The Back Page</a> <ul> Notice: Undefined variable: allposts in /in/L5Th8 on line 87 Warning: Invalid argument supplied for foreach() in /in/L5Th8 on line 87 <li><a href="archive.php">More...</a></li> </ul> </li> <li><a href="about.php">About</a></li> </ul> Fatal error: Call to undefined function is_logged_in() in /in/L5Th8 on line 99
Process exited with code 255.
Output for 5.3.7 - 5.3.29
Warning: extract() expects parameter 1 to be array, null given in /in/L5Th8 on line 1 <!DOCTYPE html> <!--[if lt IE 7 ]><html class="ie ie6" lang="en"> <![endif]--> <!--[if IE 7 ]><html class="ie ie7" lang="en"> <![endif]--> <!--[if IE 8 ]><html class="ie ie8" lang="en"> <![endif]--> <!--[if (gte IE 9)|!(IE)]><!--><html class="no-js" lang="en"> <!--<![endif]--> <head> <!-- Basic Page Needs ================================================== --> <meta charset="utf-8"> <title>Home - UK Sports Blog - The Quiet Man Lets Out A Roar</title> <meta name="description" content="The Quiet Man Lets Out a Roar Homepage - UK Sports blog covering Football, Cricket and Tennis (among others)"> <meta name="author" content="Martin Heavens"> <!-- Mobile Specific Metas ================================================== --> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- CSS ================================================== --> <link rel="stylesheet" href="stylesheets/base.css"> <link rel="stylesheet" href="stylesheets/skeleton.css"> <link rel="stylesheet" href="stylesheets/layout.css"> <link rel="stylesheet" href="../stylesheets/base.css"> <link rel="stylesheet" href="../stylesheets/skeleton.css"> <link rel="stylesheet" href="../stylesheets/layout.css"> <!--[if lt IE 9]> <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script> <![endif]--> <!-- Favicons ================================================== --> <link rel="shortcut icon" href="Images/favicon.ico"> <link rel="apple-touch-icon" href="Images/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="72x72" href="Images/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="114x114" href="Images/apple-touch-icon-114x114.png"> <!-- Get latest Javascript & Modernizr ================================================== --> <script src="http://code.jquery.com/jquery-1.7.1.min.js"></script> <script src="javascript/modernizr-2.7.1.min.js"></script> <!-- Google Analytics ================================================== --> <script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-39012813-1', 'thequietmanletsoutaroar.com'); ga('send', 'pageview'); </script> <!-- PHP-based styling for drop-down menu ================================================== --> <style> nav.primary ul li:hover ul { height:<?= ($config['links']+1)*35 ?>px;} </style> <!-- Base href for site ================================================== --> <base href="<?=$base?>"> </head> <body> <a name="top"></a> <div class="band"> <header class="container main headband"> <div class="sixteen columns"> <h1 class="logo1"><a href="index.php">The Quiet Man<br/>Lets Out A Roar</a></h1> <h3>What the commentators leave out.</h3> </div><!--end sixteen columns--> </header><!--end header--> <nav class="container primary"> <div class="sixteen columns"> <ul> <li><a href="index.php">Home</a></li> <li><a href="article.php?id=<?= $allposts[0]['id']; ?>">The Back Page</a> <ul> Notice: Undefined variable: allposts in /in/L5Th8 on line 87 Warning: Invalid argument supplied for foreach() in /in/L5Th8 on line 87 <li><a href="archive.php">More...</a></li> </ul> </li> <li><a href="about.php">About</a></li> </ul> Fatal error: Call to undefined function is_logged_in() in /in/L5Th8 on line 99
Process exited with code 255.