3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Bootstrap --> <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <?php $passwd=$_POST["passwd"]; # settare nella riga seguente la password if ($passwd=="med2014"): ?> <html> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Language" content="it"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Area Riservata Clinica del Mediterraneo - Ragusa</title> </head> <body bgcolor="#FFFFFF"> <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script> <!-- Include all compiled plugins (below), or include individual files as needed --> <script src="bootstrap/js/bootstrap.min.js"></script> </body> <br/> <div class="container"> <div class="row"> <div class="col-md-2"></div> <div class="col-md-8"> <?php print " <table class='table table-bordered table-striped table-hover' > <thead> <tr> <th >Numero cartella</th> <th >Link per Download</th> </tr> </thead>"; //Imposto la directory da leggere //$directory = "/web/htdocs/www.gemis.it/ftp/riservata/"; foreach (glob("*.pdf") as $filename) { print " <tr> <td>".$filename."</td> <td><a href=".$filename." target='_blank' ><font color='red' size='3' face='Verdana, Arial, Helvetica, sans-serif'>Download</font></a></td> <tr/>"; } print "</table>"; ?> </div> <div class="col-md-2"></div> </div> </div> <!------------------- fine html pagina riservata--------------------> <? else: ?> <!------------------- inizio html pagina errore--------------------> <body bgcolor="#FFCB8C"> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" width="90%"> <tr> <td width="100%" bgcolor="#0099CC"> <p align="center"><font face="Verdana" size="2" color="#FFFFFF">area protetta, non sei autorizzato all'accesso</font></td> </tr> <tr> <td width="100%" height="290"> <p align="center"><font face="Verdana" size="2"><b><a href="accesso_area.htm">L'ACCESSO ALL'AREA NON E' STATO GARANTITO: RITENTARE O RIVOLGERSI ALL'AMMINISTRATORE SE SI RITIENE DI AVER DIRITTO ALL'ACCESSO</a></b></font></td> </tr> </table> </center> </div> <!------------------- fine html pagina errore--------------------> <? endif; ?> </body> </html>
Output for 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Parse error: syntax error, unexpected end of file, expecting "elseif" or "else" or "endif" in /in/dfGLE on line 107
Process exited with code 255.
Output for 8.0.0 - 8.0.13
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Bootstrap --> <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> Warning: Undefined array key "passwd" in /in/dfGLE on line 20 <!------------------- inizio html pagina errore--------------------> <body bgcolor="#FFCB8C"> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" width="90%"> <tr> <td width="100%" bgcolor="#0099CC"> <p align="center"><font face="Verdana" size="2" color="#FFFFFF">area protetta, non sei autorizzato all'accesso</font></td> </tr> <tr> <td width="100%" height="290"> <p align="center"><font face="Verdana" size="2"><b><a href="accesso_area.htm">L'ACCESSO ALL'AREA NON E' STATO GARANTITO: RITENTARE O RIVOLGERSI ALL'AMMINISTRATORE SE SI RITIENE DI AVER DIRITTO ALL'ACCESSO</a></b></font></td> </tr> </table> </center> </div> <!------------------- fine html pagina errore--------------------> </body> </html>
Output for 7.4.33
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Bootstrap --> <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> Notice: Undefined index: passwd in /in/dfGLE on line 20 <!------------------- inizio html pagina errore--------------------> <body bgcolor="#FFCB8C"> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" width="90%"> <tr> <td width="100%" bgcolor="#0099CC"> <p align="center"><font face="Verdana" size="2" color="#FFFFFF">area protetta, non sei autorizzato all'accesso</font></td> </tr> <tr> <td width="100%" height="290"> <p align="center"><font face="Verdana" size="2"><b><a href="accesso_area.htm">L'ACCESSO ALL'AREA NON E' STATO GARANTITO: RITENTARE O RIVOLGERSI ALL'AMMINISTRATORE SE SI RITIENE DI AVER DIRITTO ALL'ACCESSO</a></b></font></td> </tr> </table> </center> </div> <!------------------- fine html pagina errore--------------------> </body> </html>
Output for 7.4.26 - 7.4.32
Parse error: syntax error, unexpected end of file, expecting elseif (T_ELSEIF) or else (T_ELSE) or endif (T_ENDIF) in /in/dfGLE on line 107
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, 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
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <!-- Bootstrap --> <link href="bootstrap/css/bootstrap.min.css" rel="stylesheet"> <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries --> <!-- WARNING: Respond.js doesn't work if you view the page via file:// --> <!--[if lt IE 9]> <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script> <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script> <![endif]--> </head> <!------------------- inizio html pagina errore--------------------> <body bgcolor="#FFCB8C"> <div align="center"> <center> <table border="0" cellpadding="0" cellspacing="0" width="90%"> <tr> <td width="100%" bgcolor="#0099CC"> <p align="center"><font face="Verdana" size="2" color="#FFFFFF">area protetta, non sei autorizzato all'accesso</font></td> </tr> <tr> <td width="100%" height="290"> <p align="center"><font face="Verdana" size="2"><b><a href="accesso_area.htm">L'ACCESSO ALL'AREA NON E' STATO GARANTITO: RITENTARE O RIVOLGERSI ALL'AMMINISTRATORE SE SI RITIENE DI AVER DIRITTO ALL'ACCESSO</a></b></font></td> </tr> </table> </center> </div> <!------------------- fine html pagina errore--------------------> </body> </html>
Output for 5.2.3 - 5.2.17, 5.3.0 - 5.3.29
Parse error: syntax error, unexpected $end in /in/dfGLE on line 107
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.2
<br /> <b>Parse error</b>: syntax error, unexpected $end in <b>/in/dfGLE</b> on line <b>107</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
<br /> <b>Parse error</b>: parse error, unexpected $ in <b>/in/dfGLE</b> on line <b>107</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.3.4
<br /> <b>Parse error</b>: parse error in <b>/in/dfGLE</b> on line <b>107</b><br />
Process exited with code 255.

preferences:
338.08 ms | 401 KiB | 468 Q