3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $confirmation_message = null; if($_POST['action']="process_email") { $email = $_POST['email']; $comment = $_POST['comment']; $confirmation_message = "Thank you for your submission"; $message = "Somebody with the email ".$email." submitted their email to you."; mail('jenny1truong@gmail.com', 'Web page submission', $message, 'From:obama@whitehouse.gov'); } else{ $confirmation_message = "Erm..."; } ?>
Output for 5.3.0 - 7.2.0
Notice: Undefined index: email in /in/O9Y5H on line 6 Notice: Undefined index: comment in /in/O9Y5H on line 7 Warning: mail() has been disabled for security reasons in /in/O9Y5H on line 11
Output for 4.3.0 - 5.2.17
Notice: Undefined index: email in /in/O9Y5H on line 6 Notice: Undefined index: comment in /in/O9Y5H on line 7 Warning: mail() has been disabled for security reasons in /in/O9Y5H on line 11