3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<!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 5.4.34 - 7.1.0
<!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 5.4.0 - 5.4.32
Parse error: syntax error, unexpected end of file in /in/dfGLE on line 107
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected $end in /in/dfGLE on line 107
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected $ in /in/dfGLE on line 107
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/dfGLE on line 107
Process exited with code 255.