3v4l.org

run code in 300+ PHP versions simultaneously
<?php ob_start("ob_gzhandler"); session_start(); $cache_on_off = 1; //Cachen an oder aus 1=on/ 0=off $out_time_files = 24; //Verfallsdatum der gecachten HTML-Dateien in Stunden $out_time_news = 12; //Zeit in Stunden bis ein News-cachefile erneuert wird $main_path = ($_SERVER['PHP_SELF']);//echo $main_path; //Pfad incl. Dateiname zBsp.(/helipeter/index.php) $cache_path = "de/cache/"; @include "includes/languages/de.php"; $text_language = "de"; if (is_array($_SESSION) && array_key_exists('time', $_SESSION)) { $g_zeit = 60*55; //55 Minuten, dann neu einloggen, nur für nicht bezahlte Tester //echo "Probezugang"; if (time() - $_SESSION['time'] > $g_zeit) { //echo "Probe/ Test\n"; header('Location: login.html'); $_SESSION = array(); // Falls die Session gelöscht werden soll, löschen Sie auch das // Session-Cookie. // Achtung: Damit wird die Session gelöscht, nicht nur die Session-Daten! if (ini_get("session.use_cookies")) { $params = session_get_cookie_params(); setcookie(session_name(), '', time() - 42000, $params["path"], $params["domain"], $params["secure"], $params["httponly"]); } // Zum Schluß, löschen der Session. session_destroy(); } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html lang="de"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <meta http-equiv="X-UA-Compatible" content="IE=edge"/> <meta name="viewport" content="width=device-width, initial-scale=1"/> <!--sphider_noindex--> <? /* Includes */ include('expand/config.inc.php'); // Included die Config für Loginsystem include('expand/functions.inc.php'); // Included die Funktionsdatei mit den ganzen Funktionen für Loginsystem include('expand/run.inc.php'); // Included die Run-Datei mit welcher die Funktionen ausgeführt werden nach bestimmten Bedingungen für Loginsystem include("funktionen/funktionen.php"); // Included die Config für den Rest der Seite $stoerung_text = (mainout('stoerung_text')); $begriffe = array(); if (isset ($_REQUEST['section'])){ $section = ($_REQUEST['section']); } if ($section == "welcome"){ header("Location: http://www.heli-planet.de"); } $o = ""; $s = ""; $s = array(); if (logon()) { $pl = userout('rank'); }else{ if(is_crawler()){ $pl = '3'; }else{ $pl = '0'; } } // NUR für nicht eingeloggte User aufrufbar ######## if(!logon()){ if(mainout('regist') == 1){ $s[] = 'regist'; } if(mainout('pwv') == 1){ $s[] = 'pwv'; } $s[] = 'login'; } // Für alle Nutzer die Dateien entsprechend dem Permission Level aufrufbar machen ############# $sql = ("SELECT dateien FROM 1_hp WHERE perm_level <= '$pl'"); $result = mysqli_query ($mysqli, $sql); while ($array_result = mysqli_fetch_array($result)) { $s[] = $array_result['dateien']; } // ############################################## // section ermitteln ########################### if(isset($_GET['section'])) { $section =($_GET['section']); }else{ $section = "welcome"; } $dateiname = "cache-".$section.".htm"; // Cache Name vergeben // ################################################## // Eingeloggt und MBZAHLUNG als seite gespeichert, dann if(logon()) { if (($sel=="mbzahlung")or($sel=="mbzahlung_vorab")){ $section = "profil"; $o = "profil"; } if ($sel == 'freetime'){ $section = 'schon_eingeloggt'; } if ($section == 'login'){ $section = 'schon_eingeloggt'; } } // ################################################## $sql = "SELECT * FROM 1_hp WHERE dateien = '$section'"; $result = mysqli_query($mysqli, $sql); $row = mysqli_fetch_assoc($result); $pdes = $row['description']; $pkey = $row['keywords']; $path = $row['path']; //Dateipfad $dateien = $row['dateien']; //Section $titel = $row['titel']; $description = $row['description']; $keywords = $row['keywords']; ?> <!--/sphider_noindex--> <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags --> <meta name="Author" content="Webdesign Peter Henning. Alle Rechte vorbehalten"/> <meta name="description" content="<? if ($pdes !="") {echo $pdes;} else {echo "Modellhelikopter, Hubschrauber, heli, Modellflugschule, Flugschule, RC Helikopter";} ?>"/> <meta name="keywords" content="<? if ($pkey !="") {echo $pkey;} else {echo "Heli, Helikopter, Copter, Hubschrauber, Flugschule, ferngesteuert, fliegen lernen, RC Heli kaufen,";}?>"/> <!--sphider_noindex--> <meta name="Publisher" content="Peter Henning"/> <meta name="Copyright" content="Peter Henning"/> <meta name="Page-topic" content="RC, Modellbau, Hubschrauber, Helikopter, Helikopter fliegen, Helicopter, Flugschule, Service"/> <meta name="Audience" content="Alle"/> <meta name="Content-language" content="DE"/> <meta name="robots" content="index,follow"/> <meta name="revisit-after" content="5 days"/> <meta name="expires" content="5 days"/> <link rel="icon" href="/favicon.ico"/> <!-- Desktop Icons für Apple definieren --> <link rel="apple-touch-icon" href="images/icons/touch-icon-iphone.png"> <link rel="apple-touch-icon" sizes="76x76" href="images/icons/touch-icon-ipad.png"> <link rel="apple-touch-icon" sizes="120x120" href="images/icons/touch-icon-iphone-retina.png"> <link rel="apple-touch-icon" sizes="152x152" href="images/icons/touch-icon-ipad-retina.png"> <!--/sphider_noindex--> <title><? echo $titel." ".userout('username');?></title> <!--sphider_noindex--> <!-- Bootstrap core CSS --> <link href="css/bootstrap.css" rel="stylesheet"/> <!-- Custom styles for this template --> <link href="css/offcanvas.css" rel="stylesheet"/> <!-- Bootstrap min CSS --> <!--<link href="http://www.heli-planet.de/css/bootstrap.min.css" rel="stylesheet">--> <!-- Back to top Stylesheet --> <!-- <link href="http://www.heli-planet.de/css/back_to_top_style.css" rel="stylesheet"/> //eingefügt in offcanvas.css ####--> <!-- Loginsystem CSS --> <!-- <link href="http://www.heli-planet.de/css/loginsystem.css" rel="stylesheet"/>--> <!-- Social CSS --> <!-- <link href="http://www.heli-planet.de/css/social.css" rel="stylesheet"/> --> <!--<link href="http://www.heli-planet.de/suchen/include/js_suggest/SuggestFramework.css" rel="stylesheet" type="text/css"/>--> <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script> <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> <![endif]--> <!-- Begin Cookie Consent plugin by Silktide - http://silktide.com/cookieconsent --> <script type="text/javascript"> window.cookieconsent_options = {"message":"Diese Website verwendet Cookies, um die Dienste ständig zu verbessern und bestimmte Features zu ermöglichen. Indem Sie hier fortfahren, stimmen Sie dieser Verwendung zu. <br> This website uses cookies to ensure you get the best experience on our website","dismiss":"OK!","learnMore":"Info","link":"http://www.heli-planet.de/coockiconsent.html","theme":"dark-floating"}; </script> <!-- End Cookie Consent plugin --> </head> <? require "funktionen/funktionen.php"; require "funktionen/begriffe.php"; ?> <body> <!-- child of the body tag --> <p id="top-link-block" class="hidden"> <a href="#top" class="btn btn-primary" onclick="$('html,body').animate({scrollTop:0},'slow');return false;"> <i class="fa fa-chevron-up"></i><br/> Back to Top </a> </p> <? require "includes/navigation_top.php"; ?> <!--/sphider_noindex--> <div class="container"> <div class="row row-offcanvas row-offcanvas-right"> <div class="col-xs-6 col-sm-3 sidebar-offcanvas" id="sidebar"> <!--sphider_noindex--> <? require "includes/navigation_main.php"; ?> </div> <div class="container"> <div class="col-xs-12 col-sm-9"> <p class="pull-right visible-xs"> <button type="button" class="btn btn-primary btn-sm" data-toggle="offcanvas"><i class="fa fa-angle-left"></i> Menü <i class="fa fa-angle-right"></i></button> </p> <div class="row"> <div class="page-header" > <h1> <!--/sphider_noindex--> <? echo $titel;?> <!--sphider_noindex--> </h1> <? if (mainout('stoerung') == "1"){ if (mainout('stoerung_color') == "0"){ echo "<p class = \"alert alert-success\">"; }else{ if (mainout('stoerung_color') == "1"){ echo "<p class = \"alert alert-warning\">"; }else{ if (mainout('stoerung_color') == "2"){ echo "<p class = \"alert alert-danger\">"; } } } echo $stoerung_text."</p>"; } ?> </div> <? include "social/teilen.php"; ?> <div class="col-xs-12"> <? echo $last_next_mnl?> </div> <div class="col-xs-12"> <? echo $error; include "includes/google_add/google_2.php";?> <br /> </div> </div> <!--/sphider_noindex--> <!-- BOF Include der Dateien--> <? if (file_exists($path)) { if(in_array($section, $s)){ include $path; }else{ $forbidden = dbout('path','dateien','forbidden', 'hp'); include $forbidden; } } if (!file_exists($path)) { $incl = dbout('path','dateien','404', 'hp'); include $incl; } ?> <!--sphider_noindex--> <? // include "includes/google_add/google_2.php";?> </div> <!--/.sidebar-offcanvas--> </div> <!--/.row--> </div> <hr> <footer> <p> <i class="fa fa-copyright"></i> Peter Henning - Heli-Planet.de - Modellbau und Flugschule - 2011-2015</p> </footer> </div> <!--/.container--> <!-- Bootstrap core JavaScript ================================================== --> <!-- Placed at the end of the document so the pages load faster --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <!-- <script type="text/javascript" src="http://www.heli-planet.de/js/jquery.min.js"></script>--> <!--<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>--> <!--<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/cookieconsent2/1.0.9/cookieconsent.min.js"></script>--> <!-- <script type="text/javascript" src="http://www.heli-planet.de/dist/js/bootstrap.min.js"></script>--> <!-- IE10 viewport hack for Surface/desktop Windows 8 bug --> <!-- <script type="text/javascript" src="http://www.heli-planet.de/docs/assets/js/ie10-viewport-bug-workaround.js"></script>--> <script type="text/javascript" src="http://www.heli-planet.de/js/custom.js"></script> <!-- <script type="text/javascript" src="http://www.heli-planet.de/suchen/include/js_suggest/SuggestFramework.js"></script>--> <script type="text/javascript">window.onload = initializeSuggestFramework; </script> </body> </html> <!-- Custom Fonts --> <link href="font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.2.60.0040.01116.99
7.2.00.0080.00319.64
7.1.200.0120.00015.88
7.1.100.0070.01118.21
7.1.70.0050.00317.23
7.1.60.0060.01319.24
7.1.50.0120.00917.00
7.1.00.0030.07722.46
7.0.200.1020.01214.73
7.0.100.0070.08720.08
7.0.90.0100.07320.07
7.0.80.0170.06020.15
7.0.70.0230.07020.13
7.0.60.0200.04020.09
7.0.50.0130.07320.44
7.0.40.0100.07320.11
7.0.30.0130.08020.04
7.0.20.0030.06720.14
7.0.10.0000.09020.05
7.0.00.0130.07720.17
5.6.280.0030.03721.18
5.6.250.0000.08020.79
5.6.240.0100.07720.59
5.6.230.0170.07720.69
5.6.220.0030.08720.54
5.6.210.0130.07020.63
5.6.200.0170.07321.01
5.6.190.0130.08021.09
5.6.180.0170.05721.01
5.6.170.0070.08021.01
5.6.160.0170.05721.06
5.6.150.0070.04721.11
5.6.140.0000.04721.11
5.6.130.0100.08021.18
5.6.120.0000.08721.11
5.6.110.0130.08021.02
5.6.100.0100.08721.00
5.6.90.0100.08021.13
5.6.80.0030.06720.52
5.6.70.0100.08320.39
5.6.60.0030.08320.51
5.6.50.0130.07320.60
5.6.40.0130.07020.47
5.6.30.0000.06720.51
5.6.20.0170.07320.45
5.6.10.0000.08320.57
5.6.00.0100.08020.50
5.5.380.0070.04020.59
5.5.370.0100.08020.47
5.5.360.0100.04320.59
5.5.350.0030.07720.46
5.5.340.0100.07720.91
5.5.330.0100.08020.86
5.5.320.0070.07320.98
5.5.310.0070.07020.92
5.5.300.0070.07720.78
5.5.290.0100.04020.94
5.5.280.0030.06720.78
5.5.270.0070.04720.77
5.5.260.0030.08320.93
5.5.250.0070.08320.79
5.5.240.0070.07020.16
5.5.230.0230.06020.22
5.5.220.0130.07320.33
5.5.210.0200.04020.26
5.5.200.0100.04720.18
5.5.190.0170.07320.31
5.5.180.0030.05320.29
5.5.160.0000.05320.14
5.5.150.0100.07720.29
5.5.140.0070.08020.30
5.5.130.0100.07320.26
5.5.120.0170.07320.23
5.5.110.0070.07720.30
5.5.100.0130.07320.11
5.5.90.0100.05720.18
5.5.80.0100.07320.16
5.5.70.0000.05320.21
5.5.60.0070.06719.99
5.5.50.0100.04320.11
5.5.40.0070.07720.14
5.5.30.0130.07320.05
5.5.20.0070.08320.19
5.5.10.0170.07020.03
5.5.00.0230.06320.07

preferences:
38.5 ms | 400 KiB | 5 Q