3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* Copyright 2013 Christoph Bultmann This file is part of the MAKERGAUL-package. The MAKERGAUL-package is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. The MAKERGAUL-package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with the MAKERGAUL-package. If not, see <http://www.gnu.org/licenses/>. */ /*Session direkt starten (An dieser Stelle ist z.B. auch die Integration in ein passwortgeschütztes Accountsystem mit MySQL-Benutzerdatenbank zu realisieren)*/ session_start(); /*----Progamminformation----*/ const PROGRAMM = "MAKERGAUL"; //Programmname (Bleibt für alle Versionen fix) const MAJOR_RELEASE = 1; //Hauptversion const MINOR_RELEASE = 0; //Entwicklungsversion const PATCH_LEVEL = 0; //Patch zur Hauptversion const INDEXFILE = __FILE__; //Datei, in der sich das Script befindet //Datei zur Bestimmung der absoluten Pfadangabe des Binary-Verzeichnisses //(Wird zum Aufrufen externer Anwendungen zwingend benötigt) include_once("modules/analysis/binarys/exec_getpath.php"); //Absoluter Pfad des Binary-Verzeichnisses, endet mit "/" (UNIX) oder "\" (Windows) //Wird aus Sicherheitsgründen bei jedem Aufrufen aktualisiert! $EXEC_PATH = exec_getpath(); //Aus Sicherheitsgründen bei jedem Seitenaufruf vor Include-Vorgang Modulpfade zurücksetzen und aktualisieren /*Einbinden aller Dateien, die sich in den Erweiterungsverzeichnissen befinden*/ $Modules_Main = scandir("modules/main"); $Modules_Menus = scandir("modules/menus"); $Modules_Models = scandir("modules/analysis"); //Nur Schleife starten, wenn im Verzeichniss auch Dateien zum Einlesen da sind if($Modules_Main !== FALSE) { for($i=2;$i<count($Modules_Main);$i++) //Erst bei 2 starten, da die ersten beiden Arrayeinträge nichts nützliches enthalten { if(stristr($Modules_Main[$i],".php") !== FALSE && stristr($Modules_Main[$i],"\~") === FALSE) {include_once("modules/main/".$Modules_Main[$i]);} //PHP-Datei? } } if($Modules_Menus !== FALSE) { for($a=2;$a<count($Modules_Menus);$a++) { if(stristr($Modules_Menus[$a],".php") !== FALSE && stristr($Modules_Menus[$a],"\~") === FALSE) {include_once("modules/menus/".$Modules_Menus[$a]);} } } if($Modules_Models !== FALSE) { for($b=2;$b<count($Modules_Models);$b++) { if(stristr($Modules_Models[$b],".php") !== FALSE && stristr($Modules_Models[$b],"\~") === FALSE) {include_once("modules/analysis/".$Modules_Models[$b]);} } } /*Daten über geladene Module in Session-Arrays übertragen*/ $_SESSION["Modules_Main"] = $Modules_Main; $_SESSION["Modules_Menus"] = $Modules_Menus; $_SESSION["Modules_Models"] = $Modules_Models; $_SESSION["Modules_Classes"] = get_declared_classes(); ?> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"> <?php echo(" <title>".PROGRAMM." ".MAJOR_RELEASE.".".MINOR_RELEASE.".".PATCH_LEVEL."</title>\n"); $Css_Sheets = scandir("css"); if($Css_Sheets !== FALSE) { for($i=2;$i<count($Css_Sheets);$i++) { if(stristr($Css_Sheets[$i],".css") !== FALSE) {echo(" <link rel=\"stylesheet\" type=\"text/css\" href=\"css/".$Css_Sheets[$i]."\">\n");} //CSS-Datei?-->Einbinden! } } ?> <!-- Favicon für alle/ IE--> <link rel="icon" href="gfx/favicon.ico" type="image/x-icon"> <link rel="shortcut icon" href="gfx/favicon.ico" type="image/x-icon"> <script type="text/javascript"> window.setInterval("scrolldown()",1); function scrolldown() { var logdivs = window.document.getElementsByName("logdiv"); for (i=0;i<logdivs.length;i++) { //Alle Logdivs automatisch nach unten scrollen logdivs.item(i).scrollTop = logdivs.item(i).scrollHeight; } } </script> </head> <body> <?php /*Beim Wiederaufruf( = Aktualisierung der Seite) werden alle an die Seite per "post" übergebenen Daten geprüft*/ control_submit(); /*--------Programm starten & Anzeige aktualisieren------------*/ show_main(); ?> </body> </html>
Output for 8.0.14 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Warning: include_once(): open_basedir restriction in effect. File(modules/analysis/binarys/exec_getpath.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/LCY2J on line 27 Warning: include_once(modules/analysis/binarys/exec_getpath.php): Failed to open stream: Operation not permitted in /in/LCY2J on line 27 Warning: include_once(): Failed opening 'modules/analysis/binarys/exec_getpath.php' for inclusion (include_path='.:') in /in/LCY2J on line 27 Fatal error: Uncaught Error: Call to undefined function exec_getpath() in /in/LCY2J:30 Stack trace: #0 {main} thrown in /in/LCY2J on line 30
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Warning: include_once(): open_basedir restriction in effect. File(modules/analysis/binarys/exec_getpath.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/LCY2J on line 27 Warning: include_once(modules/analysis/binarys/exec_getpath.php): Failed to open stream: Operation not permitted in /in/LCY2J on line 27 Warning: include_once(): Failed opening 'modules/analysis/binarys/exec_getpath.php' for inclusion (include_path='.:') in /in/LCY2J on line 27 Fatal error: Uncaught Error: Call to undefined function exec_getpath() in /in/LCY2J:30 Stack trace: #0 {main} thrown in /in/LCY2J on line 30
Process exited with code 255.
Output for 8.0.0 - 8.0.13
Warning: include_once(modules/analysis/binarys/exec_getpath.php): Failed to open stream: No such file or directory in /in/LCY2J on line 27 Warning: include_once(): Failed opening 'modules/analysis/binarys/exec_getpath.php' for inclusion (include_path='.:') in /in/LCY2J on line 27 Fatal error: Uncaught Error: Call to undefined function exec_getpath() in /in/LCY2J:30 Stack trace: #0 {main} thrown in /in/LCY2J on line 30
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.25, 7.4.33
Warning: include_once(modules/analysis/binarys/exec_getpath.php): failed to open stream: No such file or directory in /in/LCY2J on line 27 Warning: include_once(): Failed opening 'modules/analysis/binarys/exec_getpath.php' for inclusion (include_path='.:') in /in/LCY2J on line 27 Fatal error: Uncaught Error: Call to undefined function exec_getpath() in /in/LCY2J:30 Stack trace: #0 {main} thrown in /in/LCY2J on line 30
Process exited with code 255.
Output for 7.4.26 - 7.4.32
Warning: include_once(): open_basedir restriction in effect. File(modules/analysis/binarys/exec_getpath.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/LCY2J on line 27 Warning: include_once(modules/analysis/binarys/exec_getpath.php): failed to open stream: Operation not permitted in /in/LCY2J on line 27 Warning: include_once(): Failed opening 'modules/analysis/binarys/exec_getpath.php' for inclusion (include_path='.:') in /in/LCY2J on line 27 Fatal error: Uncaught Error: Call to undefined function exec_getpath() in /in/LCY2J:30 Stack trace: #0 {main} thrown in /in/LCY2J on line 30
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
Warning: include_once(modules/analysis/binarys/exec_getpath.php): failed to open stream: No such file or directory in /in/LCY2J on line 27 Warning: include_once(): Failed opening 'modules/analysis/binarys/exec_getpath.php' for inclusion (include_path='.:') in /in/LCY2J on line 27 Fatal error: Call to undefined function exec_getpath() in /in/LCY2J on line 30
Process exited with code 255.

preferences:
268.31 ms | 402 KiB | 384 Q