3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $email = 'pascal@superpencil.com'; $content = stripslashes("I'm a little piggy"); $name = "Harry Potter"; $sender = "harry@hogwarts.co.uk"; $subject = stripslashes("I'm a little piggy"); $headers = stripslashes("From: $name "."<".$sender.">\r\n"); mail($email, $subject, $content, $headers);
Output for 4.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: mail() has been disabled for security reasons in /in/k1Xas on line 8
Output for hhvm-3.10.0 - 3.12.0