3v4l.org

run code in 300+ PHP versions simultaneously
<script language="javascript" type="text/javascript"> function clearText(field) { if (field.defaultValue == field.value) field.value = ''; else if (field.value == '') field.value = field.defaultValue; } </script> <?php session_start(); $datum = date("d/m/Y H:i:s"); $vs = Time(); $meno = $_POST['meno']; $priezvisko =$_POST['priezvisko']; $cislo = $_POST['cislo']; $email = $_POST['email']; $ico = $_POST['ico']; $dic = $_POST['dic']; $adresa = $_POST['adresa']; $mesto= $_POST['mesto']; $psc= $_POST['psc']; $sprava = $_POST['sprava']; $cena = $_SESSION['total']; $meno_faktura = $_POST['meno_faktura']; $priezvisko_faktura =$_POST['priezvisko_faktura']; $cislo_faktura = $_POST['cislo_faktura']; $email_faktura = $_POST['email_faktura']; $ico_faktura = $_POST['ico_faktura']; $dic_faktura = $_POST['dic_faktura']; $adresa_faktura = $_POST['adresa_faktura']; $mesto_faktura = $_POST['mesto_faktura']; $psc_faktura = $_POST['psc_faktura']; $sprava_faktura = $_POST['sprava_faktura']; $cena = $_SESSION['total']; $_SESSION['zbozi'][$nazov_normal] = $quantity; require 'phpmailerautoload.php'; $mail = new PHPMailer; $mail->Charset = "utf-8"; $mail->isSMTP(); // Set mailer to use SMTP $mail->Host = 'smtp.gmail.com'; // Specify main and backup SMTP servers $mail->SMTPAuth = true; // Enable SMTP authentication $mail->Username = 'registracia.herb.vyziva@gmail.com'; // SMTP username $mail->Password = 'pavolpuskar'; // SMTP password $mail->SMTPSecure = 'tls'; // Enable encryption, 'ssl' also accepted $mail->From = 'objednavky.herb-vyziva.eu'; $mail->FromName = 'Herb-Vyživa'; $mail->addAddress('objednavky@herb-vyziva.eu', 'Herb Vyziva'); // Add a recipient $mail->AddCC($email); $mail->WordWrap = 50; // Set word wrap to 50 characters $mail->isHTML(true); // Set email format to HTML $mail->Subject = 'Vaša objednávka číslo:' .$vs. ' z Herb-Vyziva.eu'; $mail->Body = " <html><body> <table width='100%'> <tr> <td width='60%'>Variabilný symbol</td> <td>$vs</td> </tr> <tr> <td width='60%'>Dátum a čas</td> <td width='40%'>$datum</td> </tr> <tr> <td colspan='2'>Na tento e-mail <strong>neodpovedajte</strong>.</td> </tr> <tr> <td></td> </tr> <tr> <td colspan='2' style='border: 1px solid #cacaca;'>Kontaktné informácie</td> </tr> <tr> <td width='60%'>Meno</td> <td width='40%'>$meno</td> </tr> <tr> <td width='60%'>Priezvisko</td> <td width='40%'>$priezvisko</td> </tr> <tr> <td width='60%'>Telefónne číslo</td> <td width='40%'>$cislo</td> </tr> <tr> <td width='60%'>E-mail</td> <td width='40%'>$email</td> </tr> <tr> <td width='60%'>IČO</td> <td width='40%'>$ico</td> </tr> <tr> <td width='60%'>DIČ</td> <td width='40%'>$dic</td> </tr> <tr> <td colspan='2' style='border: 1px solid #cacaca;'>Adresa na doručenie</td> </tr> <tr> <td width='60%'>Ulica, číslo</td> <td width='40%'>$adresa</td> </tr> <tr> <td width='60%'>Mesto:</td> <td width='40%'>$mesto</td> </tr> <tr> <td width='60%'>PSČ</td> <td width='40%'>$psc</td> </tr> <tr> <td colspan='2' style='border: 1px solid #cacaca;'>Fakturačná adresa</td> </tr> <tr> <td width='60%'>Meno</td> <td width='40%'>$meno_faktura</td> </tr> <tr> <td width='60%'>Priezvisko</td> <td width='40%'>$priezvisko_faktura</td> </tr> <tr> <td width='60%'>Telefónne číslo</td> <td width='40%'>$cislo_faktura</td> </tr> <tr> <td width='60%'>E-mail</td> <td width='40%'>$email_faktura</td> </tr> <tr> <td width='60%'>IČO</td> <td width='40%'>$ico_faktura</td> </tr> <tr> <td width='60%'>DIČ</td> <td width='40%'>$dic_faktura</td> </tr> <tr> <td width='60%'>Ulica, číslo</td> <td width='40%'>$adresa_faktura</td> </tr> <tr> <td width='60%'>Mesto:</td> <td width='40%'>$mesto_faktura</td> </tr> <tr> <td width='60%'>PSČ</td> <td width='40%'>$psc_faktura</td> </tr> <tr> <td width='60%'>Správa</td> <td width='40%'>$sprava_faktura</td> </tr> <tr> <td></td> </tr> <tr> <td colspan='2' style='border: 1px solid #cacaca;'>Objednávka</td> </tr> <tr> <td></td> </tr> <tr> <td width='60%'>Tovar</td> <td width='40%'>Počet ks</td> </tr> <tr> <td width='60%'> <? "; foreach($_SESSION['zbozi'] as $index => $value){ echo $index."<br>"; } echo"</td> <td width='40%'>"; foreach($_SESSION['zbozi'] as $index => $value){ echo $value."<br>"; } echo"</td> </tr> <tr> <td width='60%'>Celková cena objednávky</td> <td width='40%'>$cena</td> </tr> </table> </body> </html>"; "; ?> if (!$meno || !$priezvisko || !$cislo || !$email || !$adresa || !$mesto || !$psc) { echo 'Formulár nebol odoslaný. Skontrolujte si, prosím, vypísanie všetkých políčok a skúste to znova.'; echo '<a href="?strana=dokoncit">Späť na formulár</a>'; } elseif(!$mail->send()) { echo 'Formulár nebol odoslaný. Skontrolujte si, prosím, vypísanie všetkých políčok a skúste to znova.'; echo '<a href="?strana=dokoncit">Späť na formulár</a>'; echo 'Mailer Error: ' . $mail->ErrorInfo; } else { echo 'Vaša objednávka bola odoslaná. V krátkej dobe Vás bude kontaktovať administrátor.'; } ?>

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)
5.4.310.0060.04712.53
5.4.300.0050.03712.53
5.4.290.0060.03912.53
5.4.280.0070.03412.43
5.4.270.0040.03812.42
5.4.260.0070.03912.42
5.4.250.0060.03612.43
5.4.240.0060.03612.42
5.4.230.0030.03912.41
5.4.220.0060.03612.42
5.4.210.0110.03512.41
5.4.200.0100.03612.42
5.4.190.0080.03812.41
5.4.180.0110.03312.41
5.4.170.0070.03712.42
5.4.160.0060.04112.41
5.4.150.0080.03612.41
5.4.140.0070.04112.11
5.4.130.0080.03812.09
5.4.120.0090.04012.05
5.4.110.0100.03312.05
5.4.100.0100.04412.05
5.4.90.0060.04912.04
5.4.80.0080.04412.04
5.4.70.0050.03812.04
5.4.60.0110.03612.04
5.4.50.0060.04412.04
5.4.40.0100.05112.02
5.4.30.0070.04612.02
5.4.20.0080.03812.02
5.4.10.0070.04412.02
5.4.00.0070.04211.52
5.3.280.0080.04412.71
5.3.270.0100.04312.72
5.3.260.0090.04812.72
5.3.250.0060.03712.72
5.3.240.0040.03912.72
5.3.230.0080.04112.71
5.3.220.0050.03912.68
5.3.210.0070.03812.68
5.3.200.0080.03812.68
5.3.190.0090.03512.68
5.3.180.0040.03812.67
5.3.170.0070.03612.67
5.3.160.0060.03812.67
5.3.150.0080.03612.68
5.3.140.0090.03312.66
5.3.130.0070.03812.66
5.3.120.0060.03912.66
5.3.110.0050.04112.66
5.3.100.0100.04812.12
5.3.90.0060.04112.10
5.3.80.0030.03812.09
5.3.70.0050.03812.09
5.3.60.0060.03712.07
5.3.50.0060.03812.02
5.3.40.0040.04112.02
5.3.30.0070.03411.98
5.3.20.0060.03611.76
5.3.10.0050.03611.72
5.3.00.0080.03811.71
5.2.170.0070.0289.22
5.2.160.0050.0299.22
5.2.150.0040.0329.21
5.2.140.0050.0309.21
5.2.130.0060.0279.18
5.2.120.0030.0309.18
5.2.110.0050.0289.18
5.2.100.0050.0299.18
5.2.90.0040.0319.18
5.2.80.0050.0319.18
5.2.70.0080.0319.18
5.2.60.0080.0399.13
5.2.50.0040.0319.09
5.2.40.0020.0339.07
5.2.30.0040.0319.05
5.2.20.0030.0319.15
5.2.10.0070.0289.07
5.2.00.0050.0298.93
5.1.60.0040.0248.23
5.1.50.0040.0258.22
5.1.40.0060.0248.20
5.1.30.0080.0228.55
5.1.20.0060.0248.58
5.1.10.0030.0278.30
5.1.00.0080.0238.30
5.0.50.0050.0196.85
5.0.40.0050.0266.65
5.0.30.0060.0386.52
5.0.20.0050.0226.49
5.0.10.0040.0196.47
5.0.00.0040.0316.46
4.4.90.0040.0184.88
4.4.80.0040.0154.86
4.4.70.0030.0164.86
4.4.60.0030.0224.86
4.4.50.0010.0204.87
4.4.40.0020.0294.87
4.4.30.0050.0164.87
4.4.20.0030.0164.93
4.4.10.0050.0154.93
4.4.00.0010.0274.90
4.3.110.0020.0184.80
4.3.100.0020.0184.80
4.3.90.0030.0154.79
4.3.80.0040.0294.78
4.3.70.0030.0144.78
4.3.60.0030.0144.78
4.3.50.0030.0154.77
4.3.40.0000.0284.72
4.3.30.0020.0163.53
4.3.20.0010.0173.51
4.3.10.0010.0173.29
4.3.00.0030.02015.25

preferences:
141.55 ms | 1394 KiB | 7 Q