3v4l.org

run code in 300+ PHP versions simultaneously
<?php <!DOCTYPE html> <html lang="en" dir="ltr"> <head> <script src="https://kit.fontawesome.com/471e2ae98a.js" crossorigin="anonymous"></script> </head> <style media="screen"> @font-face { font-family: calibri; src: url(calibri.ttf); } body { font-family: calibri; font-size: 18px; } .header { background-color:rgba(230, 7, 44, 1); padding: 30px; color: white; font-size: 30px; } .tittle { color: rgba(230, 7, 44, 1);; font-size: 24px; padding-left: 80px; padding-top: 30px; } table, th, td { border: 1px solid black; border-collapse: collapse; padding: 15px; text-align: center; } .table_align_left { text-align: left; } .table1_row_width { width: 33%; } .table1_row_width2 { width: 21%; } table#t01 { background-color: white; width: 100%; } .red { background:rgba(245, 217, 191, 0.5);; padding-left: 10px; margin-right: 80px; margin-left: 80px; } .bloc1 { height:200px; width: 24%; display:inline-block; border: 1px; margin: 0% -10% 0% 0%; } .bloc2 { height:200px; width: 24%; display:inline-block; border: 1px; margin: 0% 10% 0% 0%; } .bloc3 { height:200px; width: 24%; display:inline-block; border: 1px; margin: 0% -10% 0% 0%; } .bloc4 { height:200px; width: 24%; display:inline-block; border: 1px; margin: 0% 0% 0% 0%; } .white { margin-top: 300px; background: white; padding-left: 10px; margin-right: 80px; margin-left: 80px; } .footer_bloc1 { width: 33%; display: inline-block; border: 1px; margin: 0% 0% 0% 20%; } .footer_bloc2 { width: 40%; display: inline-block; border: 1px; margin: 0% 0% 0% -15%; } span { padding-left: 100px; } </style> <body> <div class="header"> <img style= "float: left; padding-right: 50px" src="globe-icon-29.jpg" width="150" height="150"> <h1>Red L - Pointeuse de poche</h1> </div> <div class="tittle"> <h2>Bon de commande</h2> </div> <?php $pointeuse_quantité = ($_POST["pointeuse_quantité"]); if ($pointeuse_quantité >= 25 and $pointeuse_quantité <=49) { $pointeuse_prix = 189.00; } elseif ($pointeuse_quantité >= 50 and $pointeuse_quantité <=99) { $pointeuse_prix = 179.00; } elseif ($pointeuse_quantité >= 100) { $pointeuse_prix = 169.00; } else $pointeuse_prix = 199.00; $autocollant_prix = 2.49; $autocollant_prix_lot10 = 49.00; $autocollant_prix_lot20 = 79.00; $autocollant_prix_lot50 = 169.00; $autocollant_quantité = ($_POST["autocollant_quantité"]); if ($autocollant_quantité >= 1 && $autocollant_quantité <= 10) { $autocollant_quantité_lot10 = 1; } elseif($autocollant_quantité >= 11 && $autocollant_quantité <= 19){ $autocollant_quantité_lot10 = 2; } elseif($autocollant_quantité == 20){ $autocollant_quantité_lot20 = 1; } elseif($autocollant_quantité >= 21 && $autocollant_quantité <= 30){ $autocollant_quantité_lot20 = 1 and $autocollant_quantité_lot10 = 1; } elseif($autocollant_quantité >= 31 && $autocollant_quantité <= 40){ $autocollant_quantité_lot20 = 2; } elseif($autocollant_quantité >= 41 && $autocollant_quantité <= 49){ $autocollant_quantité_lo50 = 1; } elseif($autocollant_quantité == 50) { $autocollant_quantité_lot50 = 1; } elseif($autocollant_quantité >= 51 && $autocollant_quantité <= 60){ $autocollant_quantité_lot50 = 1 and $autocollant_quantité_lot10; } elseif($autocollant_quantité >= 61 && $autocollant_quantité <= 70){ $autocollant_quantité_lot50 = 1 and $autocollant_quantité_lot20 = 1; } elseif($autocollant_quantité >= 71 && $autocollant_quantité <= 90){ $autocollant_quantité_lot50 = 1 and $autocollant_quantité_lot20 = 2; } elseif($autocollant_quantité >= 90 && $autocollant_quantité <= 99){ $autocollant_quantité_lot50 = 2; } elseif($autocollant_quantité >= 100 && $autocollant_quantité <= 1000){ $autocollant_custom = $autocollant_quantité; } else echo "entrée invalide"; $autocollant_total_ht_custom = $autocollant_prix * $autocollant_custom; $autocollant_total_ht_lot10 = $autocollant_prix_lot10 * $autocollant_quantité_lot10; $autocollant_total_ht_lot20 = $autocollant_prix_lot20 * $autocollant_quantité_lot20; $autocollant_total_ht_lot50 = $autocollant_prix_lot50 * $autocollant_quantité_lot50; $pointeuse_total_ht = $pointeuse_prix * $pointeuse_quantité; $pointeuse_autocollant_offert = $pointeuse_quantité * 10; $pointeuse_autocollant_offert_total_ht = $pointeuse_autocollant_offert * $autocollant_prix; $pointeuse_autocollant_offert_total_ht = $pointeuse_autocollant_offert * $autocollant_prix; if (!$autocollant_total_ht_lot10) { $autocollant_total_ht_lot10 = " "; } else echo " "; if (!$autocollant_total_ht_lot20) { $autocollant_total_ht_lot20 = " "; } else echo " "; if (!$autocollant_total_ht_lot50) { $autocollant_total_ht_lot50 = " "; } else echo " "; if (!$autocollant_total_ht_custom) { $autocollant_total_ht_custom = " "; } else echo " "; $autocollant_total_ht_custom = $autocollant_total_ht_custom; $euro = "€"; if (isset($autocollant_total_ht_custom)) { echo $autocollant_total_ht_custom . " " .$euro; } if (isset($autocollant_total_ht_lot10)) { echo $autocollant_total_ht_lot10. " " .$euro; } ?> <div style="padding-left: 80px; padding-right: 80px;"> <table id="t01"> <tr> <th class= "table_align_left table1_row_width">Matériel</th> <th class="table1_row_width2">Prix unitaire</th> <th class="table1_row_width2">Quantité</th> <th class="table1_row_width2">Total HT</th> </tr> <tr> <td class=table_align_left>Pointeuse de poche</td> <td><?php echo number_format((float)$pointeuse_prix, 2, '.', '') ?></td> <td><?php echo $_POST["pointeuse_quantité"]; ?></td> <td><?php echo number_format((float)$pointeuse_total_ht, 2, '.', ''), "€"?></td> </tr> <tr> <td class=table_align_left>Garantie 12 mois</td> <td>Inclus</td> <td>--</td> <td>--</td> </tr> <tr> <td class=table_align_left>Autocollant NFC anti-fraude</td> <td><?php echo number_format((float)$autocollant_prix, 2, '.', '') ?></td> <td><?php echo $pointeuse_autocollant_offert, " offert" ?></td> <td style="text-decoration: line-through;"><?php echo number_format((float) $pointeuse_autocollant_offert_total_ht, 2, '.', ''), "€" ?></td> </tr> </table> </div> <br> <div style="padding-left: 80px; padding-right: 80px;"> <table id="t01"> <tr> <th class= "table_align_left table1_row_width">Autocollant NFC anti-fraude</th> <th class="table1_row_width2">Prix unitaire</th> <th class="table1_row_width2">Quantité</th> <th class="table1_row_width2">Total HT</th> </tr> <tr> <td class=table_align_left>Lot de 10</td> <td><?php echo number_format((float)$autocollant_prix_lot10, 2, '.', '') ?></td> <td><?php echo $autocollant_quantité_lot10 ?></td> <td><?php echo $autocollant_total_ht_lot10?></td> </tr> <tr> <td class=table_align_left>Lot de 20</td> <td><?php echo number_format((float)$autocollant_prix_lot20, 2, '.', '') ?></td> <td><?php echo $autocollant_quantité_lot20 ?></td> <td><?php echo $autocollant_total_ht_lot20?></td> </tr> <tr> <td class=table_align_left>Lot de 50</td> <td><?php echo number_format((float)$autocollant_prix_lot50, 2, '.', '') ?></td> <td><?php echo $autocollant_quantité_lot50 ?></td> <td><?php echo $autocollant_total_ht_lot50?></td> </tr> <tr> <td class=table_align_left>A partir de 100</td> <td><?php echo $autocollant_prix ?></td> <td><?php echo $autocollant_custom?></td> <td><?php echo $autocollant_total_ht_custom?> </td> </tr> </table> </div> <br> <div style="padding-left: 80px; padding-right: 80px;"> <table id="t01"> <tr> <th class="table_align_left" style="width:34.5%;">Services</th> </tr> <tr> <td class=table_align_left>Mise en place de votre espace de gestion</td> <td>100,00€</td> </tr> <tr> <td class=table_align_left>Frais de télécommunication</td> <td>36 mois inclus (*)</td> </tr> <tr> <td class=table_align_left>Support et maintenance</td> <td>Inclus</td> </tr> <tr> <td class=table_align_left>Formation au logiciel</td> <td>Inclus</td> </tr> <tr> <td class=table_align_left>Manuel utilisateurs</td> <td>Inclus</td> </tr> </table> </div> <br> <div style="padding: 0px 80px"> <p>(*) recharge de 12 mois supplémentaires = 49,00 €</p> <p>En signant ce bon de commande, vous acceptez les conditions générales du 01/09/2018, déclarez avoir toutes les autorisations pour engager votre société, et passez commande des produits et services aux quantités mentionnées.</p> <p>Offre valable 4 semaines, paiement d’avance, prix en euros hors taxe, hors frais de port.</p> </div> <br> <p style="text-decoration: underline; padding-left: 80px;">Détails client</p> <br> <div class="red" style="margin-top: -20px"> <div class="bloc1"> <br> <p>Société</p> <p style="padding-bottom: 5px;"></p> <p>Date </p> <p style="padding-bottom: 5px;"></p> <p>Adresse</p> <p style="padding-bottom: 5px;"></p> <p>Cachet commercial</p> <p style="padding-bottom: 5px;"></p> <br> </div> <div class="bloc2"> <br> <p>____________________________________</p> <p style="padding-bottom: 5px;"></p> <p>____________________________________</p> <p style="padding-bottom: 5px;"></p> <p>____________________________________</p> <p style="padding-bottom: 5px;"></p> <p>____________________________________</p> <p style="padding-bottom: 5px;"></p> <br> </div> <div class="bloc3"> <br> <p>Nom</p> <p style="padding-bottom: 5px;"></p> <p>Fonction </p> <p style="padding-bottom: 5px;"></p> <p>Numéro TVA</p> <p style="padding-bottom: 5px;"></p> <p>Signature</p> <p style="padding-bottom: 5px;"></p> <br> </div> <div class="bloc4"> <br> <p>____________________________________</p> <p style="padding-bottom: 5px;"></p> <p>____________________________________</p> <p style="padding-bottom: 5px;"></p> <p>____________________________________</p> <p style="padding-bottom: 5px;"></p> <p>____________________________________</p> <p style="padding-bottom: 5px;"></p> <br> </div> </div> <br> <div class="white"> <div class="footer_bloc1"> <img src="180307_Logo_orange-300x169.png" width="auto" height="100"> </div> <div class="footer_bloc2"> <p style="text-align: center;">Digital Nomade SARL au capital de 160 000 euros</p> <p style="text-align: center; margin-top: -10px">45bis, route des Gardes, 92190 Meudon 800 212 490 RCS Nanterre</p> <p style="text-align: center; margin-top: -10px";>TVA intracommunautaire FR 02 800212490</p> <p style="text-align: center; margin-top: -30px;"><span></span></p> </div> </div </body> </html>

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)
7.4.50.0030.01216.28
7.4.40.0140.00315.94
7.4.30.0100.00616.10
7.4.20.0060.01016.11
7.4.10.0120.00315.95
7.4.00.0040.01116.28
7.3.170.0030.01216.31
7.3.160.0120.00616.23
7.3.150.0060.00916.16
7.3.140.0100.00716.30
7.3.130.0090.00616.08
7.3.120.0040.01215.99
7.3.110.0130.00316.02
7.3.100.0030.01316.30
7.3.90.0090.00615.96
7.3.80.0090.00616.13
7.3.70.0060.01216.20
7.3.60.0130.00316.10
7.3.50.0060.00916.06
7.3.40.0120.00316.02
7.3.30.0090.00616.06
7.3.20.0070.01016.11
7.3.10.0090.00916.21
7.3.00.0000.01616.14
7.2.290.0130.00316.27
7.2.280.0060.01016.28
7.2.270.0030.01316.44
7.2.260.0120.00416.19
7.2.250.0070.00716.21
7.2.240.0090.00616.07
7.2.230.0060.01216.00
7.2.220.0180.00016.25
7.2.210.0100.00616.58
7.2.200.0030.01316.32
7.2.190.0090.00616.18
7.2.180.0090.00615.98
7.2.170.0120.00316.20
7.2.160.0090.00616.18
7.2.150.0110.00716.33
7.2.140.0030.01316.36
7.2.130.0110.00716.14
7.2.120.0140.00316.36
7.2.110.0100.00716.24
7.2.100.0070.01016.23
7.2.90.0070.01016.14
7.2.80.0070.01016.31
7.2.70.0090.01216.30
7.2.60.0180.01816.16
7.2.50.0170.00716.06
7.2.40.0080.00815.98
7.2.30.0100.00716.20
7.2.20.0080.00816.29
7.2.10.0070.00716.29
7.2.00.0000.01516.23

preferences:
136.19 ms | 1398 KiB | 7 Q