3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $email = $_POST["email"]; $to = "george.cojanu@swisogroup.ro"; $subject = "DEZABONARE NEWSLETTER"; $body = $email; if (mail($to, $subject, $body)) { echo("<p>Email successfully sent!</p>"); } else { echo("<p>Email delivery failed…</p>"); } ?>
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined index: email in /in/kR9hl on line 2 Warning: mail() has been disabled for security reasons in /in/kR9hl on line 7 <p>Email delivery failed…</p>
Output for hhvm-3.12.0 - 3.13.2
Notice: Undefined index: email in /in/kR9hl on line 2 Warning: mail() expects parameter 3 to be string, null given in /in/kR9hl on line 7 <p>Email delivery failed…</p>
Output for hhvm-3.10.0
Notice: Undefined index: email in /in/kR9hl on line 2 <p>Email delivery failed…</p>
Output for 4.3.0 - 5.2.17
Notice: Undefined index: email in /in/kR9hl on line 2 Warning: mail() has been disabled for security reasons in /in/kR9hl on line 7 <p>Email delivery failed…</p>