3v4l.org

run code in 150+ 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 - 5.6.28, 7.0.0 - 7.1.0
Warning: mail() has been disabled for security reasons in /in/A9WTN on line 5 <p>Email delivery failed…</p>
Output for hhvm-3.10.0 - 3.12.0
<p>Email delivery failed…</p>