3v4l.org

run code in 300+ PHP versions simultaneously
<?php include '../../database/connect_mysql.php'; include '../../database/tables.php'; $comp = fromTable("competition", $_POST["id"]); $etablissement = fromTable("etablissement",$comp[0]['id_etablissement']); $universite = fromTable("universite",$etablissement[0]['id_universite']); $type = fromTable("type",$comp[0]['id_type']); ?> <!DOCTYPE HTML> <html> <head> <title>SPortINO</title> <link rel="stylesheet" type="text/css" href="/events_app/navigationstyle.css"/> <link rel="stylesheet" href="/events_app/bootstrap/css/bootstrap.min.css"> <script src="/events_app/bootstrap/js/jquery.min.js"></script> <script src="/events_app/bootstrap/js/bootstrap.min.js"></script> </head> <body dir="rlt" > <?php include("../../navpage.php");?> <div class="container"> <div class="row"> <div class="panel panel-success"> <div class="panel-heading"><h3>Créer une compétition</h3></div> <div class="well panel-body"> <form enctype="multipart/form-data" method="POST" action="/events_app/competition/scripts/update.php"> <div class="row col-md-pull-1 col-md-offset-1"> <div class="col-md-5"> <label for="nom"><h3>Titre:</h3></label> <input type="text" name="titre" id="nom" class="form-control" placeholder="Le Nom De competition *" value=<?php echo "\"" . $comp[0]["titre"] . "\""; ?> > </div> <div class="col-md-5"> <label for="slogan"><h3>Slogan</h3></label> <input type="text" name="slogon" id="slogan" placeholder="le slogan de competition" class="form-control" value=<?php echo "\"" . $comp[0]["slogon"] . "\""; ?>> </div> </div> <!-- charger les etablissement de l'universite selectionnée--> <script type="text/javascript"> $(document).ready(function(){ $('') $('#universite').on('change',function(){ var universiteID = $(this).val(); if(universiteID > 0){ $.ajax({ type:'POST', url:'/events_app/Ajax/ajaxEtablissement.php', data:'universite_id='+universiteID, success:function(html){ $('#etablissement').html(html); } }); }else{ $('#etablissement').html('<option value="-2">Selectionner d\'habord l\'universite</option>'); } }); }); </script> <div class="row col-md-pull-1 col-md-offset-1"> <div class="col-md-5"> <label for="lieu"><h3>Université :</h3></label> <select class="form-control" name="universite" id="universite"> <option value="-1" selected="selected">Selectionner l'universite</option> <?php $uns = fromTable("universite"); foreach ($uns as $un) {?> <option value=<?= "\"" . $un['id'] . "\"" ?> <?php if($universite[0]['id'] == $un['id']) echo "selected = \"selected\"";?>> <?= $un['nom'] ?> </option> <?php } ?> </select> </div> <div class="col-md-5"> <label><h3>Etablissement:</h3></label> <select class="form-control" name="etablissement" id="etablissement"> </select> </div> </div> <div class="row col-md-pull-1 col-md-offset-1"> <div class="col-md-5"> <label><h3>Description:</h3></label> <textarea rows="7" name="description"class="form-control" placeholder="Description de la competition"> <?= $comp[0]["details"] ?> </textarea> </div> <div class="col-md-5"> <label><h3>Regles:</h3></label> <textarea rows="7" name="regles" class="form-control" placeholder="Regles de la competition"> <?php echo $comp[0]["regles"] ; ?> </textarea> </div> </div> <div class="row col-md-pull-1 col-md-offset-1"> <div class="col-md-5"> <label for="sports"><h3>Types:</h3></label> <select class="form-control" name="type" id="sports"> <option value="">Selectionner le type</option> <?php $_types = fromTable("type"); foreach ($_types as $_type) {?> <option value=<?= "\"" . $_type['id'] . "\"" ?> <?php if($type[0]['id'] == $_type['id']) echo "selected = \"selected\"";?>> <?= $_type['nom'] ?> </option> <?php } ?> <br> </select> </div> <div class="col-md-5"> <label for="sports"><h3>Nombre des equipes max:</h3></label> <input type="number" name="nbmax" id="slogan" placeholder="nombre des equipes maximum" class="form-control" value=<?= "\"" . $comp[0]["nbrMaxEqui"] . "\"" ?>> </div> </div> <div class="row col-md-pull-1 col-md-offset-1"> <div class="col-md-5"> <label for="sports"><h3>Frais d'inscription:</h3></label> <input type="number" name="frais" id="slogan" placeholder="frais de la competition" class="form-control" value=<?php echo "\"" . $comp[0]["frais"] . "\""; ?>> </div> <div class="col-md-5"> <label for="premierphase"><h3>Premiere Phase</h3></label> <select class="form-control" name="phase" id="sports"> <option value="">Selectionner ici</option> <option name="Groupe"value="Groupe" <?php if($comp[0]["phase1"] == "Groupe") echo "selected"; ?> >Groupe</option> <option name="Championnat"value="Championnat" <?php if($comp[0]["phase1"] == "Championnat") echo "selected"; ?> >Championnat</option> <option name="elimination"value="elimination" <?php if($comp[0]["phase1"] == "elimination") echo "selected"; ?> >Tableau a elimination directe</option> <option name="multichance"value="multichance" <?php if($comp[0]["phase1"] == "multichance") echo "selected"; ?> >Tableau multichance</option> <br> </select> </div> </div> <div class="row col-md-pull-1 col-md-offset-1"> <div class="col-md-5"> <label for="premierphase"><h3>Date de Debut</h3></label> <input type="date" id="myDate" name="datedebut" value="2018-05-12" class="form-control" value=<?php echo "\"" . $comp[0]["dateDebut"] . "\""; ?>> </div> <div class="col-md-5"> <label for="premierphase"><h3>Date de Fin</h3></label> <input type="date" id="myDate" name="datefin" value="2018-05-12" class="form-control" value=<?php echo "\"" . $comp[0]["dateFin"] . "\""; ?>> </div> </div> <div class="row col-md-pull-1 col-md-offset-1"> <div class="col-md-5"> <label for="premierphase"><h3>Date limite d'inscription</h3></label> <input type="date" id="myDate" name="datelimite" value="2018-05-12" class="form-control" value=<?php echo "\"" . $comp[0]["dateLimite"] . "\""; ?>> </div> <div class="col-md-2"> <label for="image"><h3>Image :</h3></label> <input type="file" name="img" id ="img"> </div> <input type="hidden" name="id" value=<?= "\"" . $_POST["id"] . "\"" ?>"> <div class="col-md-1"></div> <div class="col-md-2" > <br><br><br> <label for="premierphase"></label> <input class="btn btn-success pull-right form-control" type="Submit"> </div> </div> <div class="row" ><br></div> </form> </div> </div> </div> </div> </body> </html> <?php $con->close(); ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.40.0130.00319.01
8.3.30.0070.00719.06
8.3.20.0070.00019.15
8.3.10.0050.00319.28
8.3.00.0050.00318.05
8.2.170.0070.00722.96
8.2.160.0090.00619.33
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0040.00419.56
8.2.120.0080.00026.35
8.2.110.0000.01021.18
8.2.100.0120.00019.45
8.2.90.0080.00017.75
8.2.80.0100.00019.03
8.2.70.0030.00518.05
8.2.60.0050.00317.93
8.2.50.0030.00918.10
8.2.40.0000.00819.46
8.2.30.0040.00419.46
8.2.20.0000.00718.08
8.2.10.0040.00418.04
8.2.00.0040.00419.60
8.1.270.0040.00423.88
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00019.13
8.1.230.0030.00922.69
8.1.220.0000.00818.64
8.1.210.0090.00018.77
8.1.200.0000.00817.35
8.1.190.0050.00317.35
8.1.180.0030.00518.10
8.1.170.0000.00918.78
8.1.160.0000.00718.95
8.1.150.0000.00719.03
8.1.140.0040.00417.65
8.1.130.0070.00419.07
8.1.120.0040.00417.40
8.1.110.0040.00417.49
8.1.100.0000.00717.52
8.1.90.0000.01017.40
8.1.80.0000.01117.51
8.1.70.0040.00417.41
8.1.60.0000.00917.59
8.1.50.0030.00517.54
8.1.40.0030.00517.53
8.1.30.0000.00817.72
8.1.20.0040.00417.70
8.1.10.0040.00417.60
8.1.00.0090.00017.63
8.0.300.0000.00818.77
8.0.290.0000.00816.88
8.0.280.0030.00318.62
8.0.270.0000.00717.41
8.0.260.0000.00719.13
8.0.250.0000.00717.07
8.0.240.0040.00417.16
8.0.230.0000.00717.13
8.0.220.0000.00717.10
8.0.210.0050.00217.05
8.0.200.0030.00317.17
8.0.190.0070.00017.18
8.0.180.0020.00517.08
8.0.170.0030.00717.20
8.0.160.0030.00917.01
8.0.150.0000.00817.14
8.0.140.0040.00417.10
8.0.130.0060.00013.54
8.0.120.0030.00617.07
8.0.110.0030.00517.13
8.0.100.0000.00817.03
8.0.90.0060.00317.00
8.0.80.0100.01017.13
8.0.70.0040.00417.14
8.0.60.0050.00317.11
8.0.50.0050.00317.17
8.0.30.0140.00517.17
8.0.20.0120.00917.40
8.0.10.0000.00817.02
8.0.00.0100.00716.85
7.4.330.0050.00015.55
7.4.320.0000.00716.56
7.4.300.0000.00616.72
7.4.290.0050.00316.62
7.4.280.0000.00816.60
7.4.270.0030.00316.47
7.4.260.0030.00316.51
7.4.250.0030.00516.59
7.4.240.0000.00816.67
7.4.230.0000.00716.54
7.4.220.0080.00016.61
7.4.210.0080.00916.66
7.4.200.0040.00416.52
7.4.160.0060.01216.62
7.4.140.0100.01017.86
7.4.130.0030.01516.54
7.4.120.0080.01316.63
7.4.110.0030.01316.66
7.4.100.0080.00916.52
7.4.90.0180.00616.83
7.4.80.0130.01319.39
7.4.70.0150.00616.69
7.4.60.0060.01216.47
7.4.50.0070.01116.47
7.4.40.0090.00916.68
7.4.00.0100.00715.07
7.3.330.0000.00613.41
7.3.320.0060.00013.18
7.3.310.0000.00816.50
7.3.300.0070.00016.42
7.3.290.0070.00016.41
7.3.280.0060.01216.54
7.3.260.0110.00716.50
7.3.240.0110.01016.57
7.3.230.0110.00816.56
7.3.210.0080.01216.58
7.3.200.0030.01316.55
7.3.190.0090.00616.39
7.3.180.0060.01016.53
7.3.170.0120.00916.37
7.3.160.0160.00316.32
7.2.330.0120.00616.52
7.2.320.0030.01516.58
7.2.310.0160.00716.82
7.2.300.0120.00616.88
7.2.290.0060.01216.75
7.2.60.3670.01115.01
7.2.50.3040.01015.00
7.2.40.2920.00815.41
7.2.30.3510.01015.18
7.2.20.3350.00915.45
7.2.10.3830.00915.43
7.2.00.3470.01215.22
7.1.200.0100.00315.52
7.1.170.2650.00913.87
7.1.160.3270.01216.67
7.1.150.2900.01316.73
7.1.140.3060.01216.73
7.1.130.4400.01616.77
7.1.120.3790.01816.58
7.1.110.3260.01116.12
7.1.100.3680.00815.88
7.1.90.3640.01416.17
7.1.80.4220.01416.22
7.1.70.4250.00815.28
7.1.60.3580.01433.15
7.1.50.3430.01432.78
7.1.40.4030.01532.49
7.1.30.3680.01632.57
7.1.20.4110.01832.78
7.1.10.4020.01014.68
7.1.00.4210.01314.96

preferences:
58.32 ms | 400 KiB | 5 Q