3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo"<form action='$PHP_SELF' method=post>"; if (!$kontakt) echo"<center><input type='submit' name='kontakt' value='E-Mail senden'></center><br>"; if ($kontakt) { echo"<center><table border='1' cellspacing='0' cellpadding='3' bgcolor='#d8d8d0'>"; echo"<td width='120' height='24' valign='middle'>Ihre Email-Adresse:</td><td width='330' height='24 valign='middle'><input name='von' size='40' maxlength='60'></td></tr>"; echo"<td width='450' height='40' colspan='2' valign='top'>Ihre Nachricht:<br><textarea cols=70 rows=12 name='inhalt'></textarea>"; echo"</td></tr>"; echo"<tr><td width='450' height='40' colspan='2' valign='tmiddle'><center><input type='submit' name='senden' value='Nachricht senden'></center></td></tr>"; echo"</table></center>"; } if ($senden) { @mail("thomas@oberleonline.de", "Mail von Homepage Startseite", $inhalt, "From: $von"); echo"<font color='#ff3333'><center>Vielen Dank, Ihre Nachricht wurde an uns gesendet.</center><br>"; } echo"</form>"; ?>
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: PHP_SELF in /in/Aaa1V on line 3 <form action='' method=post> Notice: Undefined variable: kontakt in /in/Aaa1V on line 5 <center><input type='submit' name='kontakt' value='E-Mail senden'></center><br> Notice: Undefined variable: kontakt in /in/Aaa1V on line 8 Notice: Undefined variable: senden in /in/Aaa1V on line 18 </form>
Output for 5.3.21 - 5.6.28
Notice: Undefined variable: PHP_SELF in /in/Aaa1V on line 3 <form action='' method=post> Notice: Undefined variable: kontakt in /in/Aaa1V on line 5 <center><input type='submit' name='kontakt' value='E-Mail senden'></center><br> Notice: Undefined variable: kontakt in /in/Aaa1V on line 9 Notice: Undefined variable: senden in /in/Aaa1V on line 19 </form>