3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $from = "amazo"; $to = "hamilton@camazo.com.br"; $subject = "PHP Mail Test script"; $message = "This is a test to check the PHP Mail functionality"; $headers = "From:" . $from; mail($to,$subject,$message, $headers); echo "Test email sent"; ?>
Output for 4.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: mail() has been disabled for security reasons in /in/TspsY on line 7 Test email sent
Output for hhvm-3.10.0 - 3.12.0
Test email sent