3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<script type="text/javascript"> function winoeff (adr,width,height) { mywin = window.open(adr, "help", "width="+ width + ",height=" + height +",scrollbars=yes"); mywin.focus(); } </script> </head> <body marginwidth=42 > <?php include ('0_def.inc') ; echo $name_of_user_db ; include ('post.inc') ; if (isset($go) == 0) {$go = 0 ;} if ($go == 0 || $go == 1 || $go == 11) { include ('0_dbuser.inc') ; include ('post_login.inc'); } if (isset($user) == 0) {$user = 'egal' ;} if (isset($state) == 0) {$state = 'egal' ;} if (isset($city) == 0) {$city = 'egal' ;} if (isset($affil) == 0) {$affil = 'egal' ;} // echo "GO = ".$go."<p>"; if ($go != 0 && $go != 1 && $go != 11) { $name_of_db = "mopsmap_".$user.".db" ; } include ('0_dbdef.inc') ; ?> <table><tr><td height=30>&nbsp;</td></tr></table> <?php if ($go != 999) { echo"<h1>Welcome to MOPSMAP &nbsp; <img border=1 align=right src='logo_ani.gif'></h1>" ; } if ($go == 0) { include ('give_pw.inc'); } // = 1 alter User hat Kennung eingegeben // =11 neuer User will sich registieren if ($go == 11) { include ('register.inc'); } // = 0 (zur Neueingabe oder Einloggen) // *** bekannter User if ($go == 1) { include ('check_pw.inc'); } // = 10 wenn gültiges PW -> ohne "Neustart von mopsmap" // = 0 wenn ungültiges PW if ($go == 10) { include ('find_prev_jobs.inc'); // für das Auswahlmenü include ('find_lib_agv.inc'); // liefert libagv_name[:] für die Pulldownmenüs include ('find_priv_agv.inc'); // liefert privagv_name[:] für die Pulldownmenüs include ('show_prev_jobs.inc'); } // wenn keine alten Jobs // "subs/set_defaults" <- "subs/select_from_mopsmap_agv_lib.sub" // "subs/insert_into_mopsmap_agv" // "subs/insert_into_mopsmap_basic[mopsmap_basic_tmp]" // immer: update_job="n", $new_jobname definiert // = 2 keine alten Jobs existieren, neuer Default-Job kreiert // = 21 alter oder neuer Job // = 27 OPAC Aerosoltyp if ($go == 21) { include ('copy_prev_job.inc'); // Arbeitskopie (tmp_jobid defined) // "subs/select_from_mopsmap_basic[mopsmap_basic]" // "subs/select_from_mopsmap_agv" // "subs/insert_into_mopsmap_agv" (Kopie unter neuem Namen) // "subs/insert_into_mopsmap_basic[mopsmap_basic_tmp]" // "subs/find_agv_from_archives" // oder Defaultwerte (tmp_jobid defined) // "subs/set_defaults" // "subs/insert_into_mopsmap_agv" // "subs/insert_into_mopsmap_basic[mopsmap_basic_tmp]" // "subs/find_agv_from_archives" include ('menu.inc') ; } // "subs/select_from_mopsmap_basic[mopsmap_basic_tmp]" // "subs/select_from_mopsmap_agv" // "find_lib_agv.inc": liefert libagv_name[:] für die Pulldownmenüs // "find_priv_agv.inc": liefert privagv_name[:] für die Pulldownmenüs // "subs/find_agv_from_archives": liefert lib_agv[:] und priv_agv[:] // = 22 Option: private AGVs updaten // = 32 Option: library AGVs anzeigen // = 3 wenn Fehler // = 3 wenn OnChange // = 6 wenn keine Fehler // = 8 Original-Job wird gelöscht // = 10 an Anfang zur Jobauswahl if ($go == 22) { include ('show_priv_agv.inc') ; } // zeigt alle privaten AGVs // = 23 Änderungen erwünscht // = 25 Neueintrag, wenn bisher leer // = 2 wenn keine Änderungen gewünscht if ($go == 23) { include ('edit_priv_agv.inc') ; } // = 26 zum Überprüfen // = 2 wenn keine Änderungen gewünscht if ($go == 24) { include ('store_priv_agv.inc') ; } // = 22 if ($go == 28) { include ('delete_priv_agv.inc') ; } // = 22 if ($go == 25) { include ('create_priv_agv.inc') ; } // = 26 zum Überprüfen // = 2 wenn keine Änderungen gewünscht if ($go == 26) { include ('check_priv_agv.inc') ; } // = 24 zum Abspeichern // = 2 wenn keine Änderungen gewünscht if ($go == 27) { include ('copy_opac_job.inc') ; // kopiert einen OPAC-Aerosoltyp include ('menu.inc') ; } // "subs/select_from_mopsmap_basic[mopsmap_basic_tmp]" // "subs/select_from_mopsmap_agv" // "find_lib_agv.inc": liefert libagv_name[:] für die Pulldownmenüs // "find_priv_agv.inc": liefert privagv_name[:] für die Pulldownmenüs // "subs/find_agv_from_archives": liefert lib_agv[:] und priv_agv[:] // = 22 Option: private AGVs updaten // = 32 Option: library AGVs anzeigen // = 3 wenn Fehler // = 3 wenn OnChange // = 6 wenn keine Fehler // = 8 Original-Job wird gelöscht // = 10 an Anfang zur Jobauswahl if ($go == 32) { include ('show_lib_agv.inc') ; } // zeigt alle AGVs aus Bibliothek // = 2 if ($go == 2) { include ('menu.inc') ; } // "subs/select_from_mopsmap_basic[mopsmap_basic_tmp]" // "subs/select_from_mopsmap_agv" // "find_lib_agv.inc": liefert libagv_name[:] für die Pulldownmenüs // "find_priv_agv.inc": liefert privagv_name[:] für die Pulldownmenüs // "subs/find_agv_from_archives": liefert lib_agv[:] und priv_agv[:], sonst "notdef" // beliebige Änderung von Parametern möglich // = 22 Option: private AGVs updaten // = 32 Option: library AGVs anzeigen // = 3 zum Überprüfen // = 3 wenn OnChange (lib_agv[:] -> old_lib_agv_1, etc.) // = 6 wenn keine Fehler // = 8 Original-Job wird gelöscht // = 10 an Anfang zur Jobauswahl if ($go == 3) { include ('check.inc') ; // beachte: unterschiedlich für go=3 und go=6 // "subs/change_to_indexed" // "subs/adapt_for_input_changes": Bestimmung der geänderten Parameter, i.e. // $lagv_changed[:], $pagv_changed[:], $comp_changed[:], $shape_changed[:] // "subs/select_from_mopsmap_agv_lib": wenn neue lib-AGV verwendet, dann diese Mikrophysik // "subs/select_from_mopsmap_agv_priv": wenn neue priv AGV verwendet, dann diese Mikrophysik // Fehler und Inkonsistenzen aufspüren // "subs/update_mopsmap_agv" // "subs/update_mopsmap_basic[mopsmap_basic_tmp]" // "subs/find_agv_from_archives": liefert lib_agv[:] und priv_agv[:], sonst "notdef" include ('menu.inc') ; } // "subs/select_from_mopsmap_basic[mopsmap_basic_tmp]" // "subs/select_from_mopsmap_agv" // "find_lib_agv.inc": liefert libagv_name[:] für die Pulldownmenüs // "find_priv_agv.inc": liefert privagv_name[:] für die Pulldownmenüs // "subs/find_agv_from_archives": liefert lib_agv[:] und priv_agv[:] // = 22 Option: private AGVs updaten // = 32 Option: library AGVs anzeigen // = 3 zum Überprüfen // = 3 wenn OnChange // = 6 wenn keine Fehler // = 8 Original-Job wird gelöscht // = 10 an Anfang zur Jobauswahl if ($go == 6) { include ('check.inc') ; // beachte: unterschiedlich für go=3 und go=6 // "subs/select_from_mopsmap_basic[mopsmap_basic_tmp]" // "subs/select_from_mopsmap_agv" // "subs/find_agv_from_archives" // "subs/change_basic_to_unindexed" // "subs/change_agv_to_unindexed" include ('freeze.inc') ; } // aktuelle Werte werden angezeigt // = 4 wenn so gerechnet werden soll, zum Output spezifizieren // = 2 wenn doch nochmal editiert werden soll/muss if ($go == 4) { include ('output.inc') ; } // Spezifikation der Output-Parameter // = 51 Check, ob Jobname OK // = 2 wenn doch nochmal editiert werden soll if ($go == 51) { include ('check_job.inc') ; } // prüft Gültigkeit des Jobnamens // = 5 zulässiger Jobname // = 4 Jobname unzulässig oder Änderungswunsch if ($go == 5) { include ('wait.inc') ; } // "subs/select_from_mopsmap_basic[mopsmap_basic_tmp]" // "subs/select_from_mopsmap_agv" // "subs/update_mopsmap_basic"; wenn update_job="y" // "subs/insert_into_mopsmap_basic"; wenn update_job="n" // Erstellen des Input-Files in "/tmp" für die Rechnung // = 999 Programm-Ende // = 81 Aufräumen // = 10 an Anfang zur Jobauswahl if ($go == 8) { include ('delete.inc') ; } // = 999 Programm-Ende // = 10 an Anfang zur Jobauswahl if ($go == 81) { include ('clean_job_tmp_db.inc') ; } // = 999 Programm-Ende // = 10 an Anfang zur Jobauswahl if ($go == 999) { include ('ende.inc') ; } ?> </body> </html>
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.7, 7.3.0alpha1 - 7.3.0beta1
<script type="text/javascript"> function winoeff (adr,width,height) { mywin = window.open(adr, "help", "width="+ width + ",height=" + height +",scrollbars=yes"); mywin.focus(); } </script> </head> <body marginwidth=42 > Warning: include(0_def.inc): failed to open stream: No such file or directory in /in/bWJKf on line 13 Warning: include(): Failed opening '0_def.inc' for inclusion (include_path='.:') in /in/bWJKf on line 13 Notice: Undefined variable: name_of_user_db in /in/bWJKf on line 14 Warning: include(post.inc): failed to open stream: No such file or directory in /in/bWJKf on line 15 Warning: include(): Failed opening 'post.inc' for inclusion (include_path='.:') in /in/bWJKf on line 15 Warning: include(0_dbuser.inc): failed to open stream: No such file or directory in /in/bWJKf on line 19 Warning: include(): Failed opening '0_dbuser.inc' for inclusion (include_path='.:') in /in/bWJKf on line 19 Warning: include(post_login.inc): failed to open stream: No such file or directory in /in/bWJKf on line 20 Warning: include(): Failed opening 'post_login.inc' for inclusion (include_path='.:') in /in/bWJKf on line 20 Warning: include(0_dbdef.inc): failed to open stream: No such file or directory in /in/bWJKf on line 32 Warning: include(): Failed opening '0_dbdef.inc' for inclusion (include_path='.:') in /in/bWJKf on line 32 <table><tr><td height=30>&nbsp;</td></tr></table> <h1>Welcome to MOPSMAP &nbsp; <img border=1 align=right src='logo_ani.gif'></h1> Warning: include(give_pw.inc): failed to open stream: No such file or directory in /in/bWJKf on line 41 Warning: include(): Failed opening 'give_pw.inc' for inclusion (include_path='.:') in /in/bWJKf on line 41 </body> </html>
Output for 7.1.20 - 7.2.6
<script type="text/javascript"> function winoeff (adr,width,height) { mywin = window.open(adr, "help", "width="+ width + ",height=" + height +",scrollbars=yes"); mywin.focus(); } </script> </head> <body marginwidth=42 > Warning: include(): open_basedir restriction in effect. File(0_def.inc) is not within the allowed path(s): (/tmp:/in) in /in/bWJKf on line 13 Warning: include(0_def.inc): failed to open stream: Operation not permitted in /in/bWJKf on line 13 Warning: include(): Failed opening '0_def.inc' for inclusion (include_path='.:') in /in/bWJKf on line 13 Notice: Undefined variable: name_of_user_db in /in/bWJKf on line 14 Warning: include(): open_basedir restriction in effect. File(post.inc) is not within the allowed path(s): (/tmp:/in) in /in/bWJKf on line 15 Warning: include(post.inc): failed to open stream: Operation not permitted in /in/bWJKf on line 15 Warning: include(): Failed opening 'post.inc' for inclusion (include_path='.:') in /in/bWJKf on line 15 Warning: include(): open_basedir restriction in effect. File(0_dbuser.inc) is not within the allowed path(s): (/tmp:/in) in /in/bWJKf on line 19 Warning: include(0_dbuser.inc): failed to open stream: Operation not permitted in /in/bWJKf on line 19 Warning: include(): Failed opening '0_dbuser.inc' for inclusion (include_path='.:') in /in/bWJKf on line 19 Warning: include(): open_basedir restriction in effect. File(post_login.inc) is not within the allowed path(s): (/tmp:/in) in /in/bWJKf on line 20 Warning: include(post_login.inc): failed to open stream: Operation not permitted in /in/bWJKf on line 20 Warning: include(): Failed opening 'post_login.inc' for inclusion (include_path='.:') in /in/bWJKf on line 20 Warning: include(): open_basedir restriction in effect. File(0_dbdef.inc) is not within the allowed path(s): (/tmp:/in) in /in/bWJKf on line 32 Warning: include(0_dbdef.inc): failed to open stream: Operation not permitted in /in/bWJKf on line 32 Warning: include(): Failed opening '0_dbdef.inc' for inclusion (include_path='.:') in /in/bWJKf on line 32 <table><tr><td height=30>&nbsp;</td></tr></table> <h1>Welcome to MOPSMAP &nbsp; <img border=1 align=right src='logo_ani.gif'></h1> Warning: include(): open_basedir restriction in effect. File(give_pw.inc) is not within the allowed path(s): (/tmp:/in) in /in/bWJKf on line 41 Warning: include(give_pw.inc): failed to open stream: Operation not permitted in /in/bWJKf on line 41 Warning: include(): Failed opening 'give_pw.inc' for inclusion (include_path='.:') in /in/bWJKf on line 41 </body> </html>
Output for hhvm-3.15.4
<script type="text/javascript"> function winoeff (adr,width,height) { mywin = window.open(adr, "help", "width="+ width + ",height=" + height +",scrollbars=yes"); mywin.focus(); } </script> </head> <body marginwidth=42 > Warning: include(0_def.inc): File not found in /in/bWJKf on line 13 Notice: Undefined variable: name_of_user_db in /in/bWJKf on line 14 Warning: include(post.inc): File not found in /in/bWJKf on line 15 Warning: include(0_dbuser.inc): File not found in /in/bWJKf on line 19 Warning: include(post_login.inc): File not found in /in/bWJKf on line 20 Warning: include(0_dbdef.inc): File not found in /in/bWJKf on line 32 <table><tr><td height=30>&nbsp;</td></tr></table> <h1>Welcome to MOPSMAP &nbsp; <img border=1 align=right src='logo_ani.gif'></h1> Warning: include(give_pw.inc): File not found in /in/bWJKf on line 41 </body> </html>