3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<html> <head> <title>Mailformulier </title> </head> <body> <?php ini_set("SMTP", "mail.live.com"); ini_set("smtp_poort", 25); ini_set("sendmail_from", "mailadres"); if($_POST["verzendbutton"] != "verzenden" || !$_POST["naam"] || !$_POST["mailadres"] || !$_POST["reactie"]) { // dus als het formulier leeg is of de waarde niet zijn ingevuld ?> <form action="mailform3.php" method = "post"> <?php if ($_POST["verzendbutton"] && !$_POST["naam"] && !$_POST["mailadres"] || !$_POST["reactie"]) { echo "<font color=\"red\"> Vul hier uw mailadres in</font><br>"; } ?> naam: <input type = "text" name = "naam" value ="<?php echo $_POST =["naam"] ?>"><br> <?php if ($_POST["verzendbutton"] && !$_POST["mailadres"]) { echo "<font color =\"red\"> Vul hier uw mailadres in!</font><br>"; } ?> E-mail: <input type = "text" name ="mailadres" value="<?php echo $_POST["mailadres"] ?>"><br> <?php if ($_POST["verzendbutton"] && !$_POST["reactie"]) { echo "<font color=\"red\">Vul hier uw reactie in!</font<br>"; } ?> Uw reactie": <textarea cols="30"rows ="4" name="reactie"><?php echo $_POST["reactie"] ?> </textarea> <input type = "submit" value ="verzenden" name ="verzendbutton"> </form> <?php } else { $boodschap = "Naam: ".$_POST["naam"]."\ncommentaar: ".$_POST["reacrie"]; mail($_POST["mailadres"], "Uw reactie van de website", $boodschap); echo "Bedankt ".$_POST["naam"].", fijn dat je mee wilde doen!"; } ?> </body> </html>
Output for 7.0.0 - 7.1.0
<html> <head> <title>Mailformulier </title> </head> <body> Notice: Undefined index: verzendbutton in /in/l5vO3 on line 10 <form action="mailform3.php" method = "post"> Notice: Undefined index: verzendbutton in /in/l5vO3 on line 16 Notice: Undefined index: reactie in /in/l5vO3 on line 16 <font color="red"> Vul hier uw mailadres in</font><br>naam: <input type = "text" name = "naam" value =" Notice: Array to string conversion in /in/l5vO3 on line 20 Array"><br> Notice: Undefined index: verzendbutton in /in/l5vO3 on line 23 E-mail: <input type = "text" name ="mailadres" value=" Notice: Undefined index: mailadres in /in/l5vO3 on line 28 "><br> Notice: Undefined index: verzendbutton in /in/l5vO3 on line 30 Uw reactie": <textarea cols="30"rows ="4" name="reactie"> Notice: Undefined index: reactie in /in/l5vO3 on line 34 </textarea> <input type = "submit" value ="verzenden" name ="verzendbutton"> </form> </body> </html>
Output for 5.4.34 - 5.6.28, hhvm-3.10.0 - 3.12.0
<html> <head> <title>Mailformulier </title> </head> <body> Notice: Undefined index: verzendbutton in /in/l5vO3 on line 10 <form action="mailform3.php" method = "post"> Notice: Undefined index: verzendbutton in /in/l5vO3 on line 16 Notice: Undefined index: reactie in /in/l5vO3 on line 16 <font color="red"> Vul hier uw mailadres in</font><br>naam: <input type = "text" name = "naam" value =" Notice: Array to string conversion in /in/l5vO3 on line 21 Array"><br> Notice: Undefined index: verzendbutton in /in/l5vO3 on line 23 E-mail: <input type = "text" name ="mailadres" value=" Notice: Undefined index: mailadres in /in/l5vO3 on line 28 "><br> Notice: Undefined index: verzendbutton in /in/l5vO3 on line 30 Uw reactie": <textarea cols="30"rows ="4" name="reactie"> Notice: Undefined index: reactie in /in/l5vO3 on line 34 </textarea> <input type = "submit" value ="verzenden" name ="verzendbutton"> </form> </body> </html>
Output for 5.4.0 - 5.4.32
<html> <head> <title>Mailformulier </title> </head> <body> Warning: ini_set() has been disabled for security reasons in /in/l5vO3 on line 7 Warning: ini_set() has been disabled for security reasons in /in/l5vO3 on line 8 Warning: ini_set() has been disabled for security reasons in /in/l5vO3 on line 9 Notice: Undefined index: verzendbutton in /in/l5vO3 on line 10 <form action="mailform3.php" method = "post"> Notice: Undefined index: verzendbutton in /in/l5vO3 on line 16 Notice: Undefined index: reactie in /in/l5vO3 on line 16 <font color="red"> Vul hier uw mailadres in</font><br>naam: <input type = "text" name = "naam" value =" Notice: Array to string conversion in /in/l5vO3 on line 21 Array"><br> Notice: Undefined index: verzendbutton in /in/l5vO3 on line 23 E-mail: <input type = "text" name ="mailadres" value=" Notice: Undefined index: mailadres in /in/l5vO3 on line 28 "><br> Notice: Undefined index: verzendbutton in /in/l5vO3 on line 30 Uw reactie": <textarea cols="30"rows ="4" name="reactie"> Notice: Undefined index: reactie in /in/l5vO3 on line 34 </textarea> <input type = "submit" value ="verzenden" name ="verzendbutton"> </form> </body> </html>
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/l5vO3 on line 20
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/l5vO3 on line 20
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/l5vO3 on line 20
Process exited with code 255.