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 git.master, git.master_jit, rfc.property-hooks
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.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
47.13 ms | 401 KiB | 8 Q