3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $to = "takis@mailinator.com"; $subject = "Hi!"; $body = "Hi,\n\nHow are you?"; if (mail($to, $subject, $body)) { echo("<p>Email successfully sent!</p>"); } else { echo("<p>Email delivery failed…</p>"); } ?>
Output for 4.3.0 - 7.1.10
Warning: mail() has been disabled for security reasons in /in/A9WTN on line 5 <p>Email delivery failed…</p>