3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $to = 'troymlandon@gmail.com'; $subject = 'Test Subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers);
Output for 5.5.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: mail() has been disabled for security reasons in /in/5k2PW on line 9
Output for 4.3.0 - 5.4.45, hhvm-3.10.0 - 3.12.0