3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $to      = "nobody@example.com"; $subject = "the subject"; $message = "hello"; $headers = "From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-Mailer: PHP/".phpversion(); mail($to,$subject,$message,$headers);
based on cCivd
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: to in /in/sPnrZ on line 7 Notice: Undefined variable: subject in /in/sPnrZ on line 7 Notice: Undefined variable: message in /in/sPnrZ on line 7 Notice: Undefined variable: headers in /in/sPnrZ on line 7 Warning: mail() has been disabled for security reasons in /in/sPnrZ on line 7
Output for hhvm-3.12.0 - 3.13.2
Notice: Undefined variable: to in /in/sPnrZ on line 7 Notice: Undefined variable: subject in /in/sPnrZ on line 7 Notice: Undefined variable: message in /in/sPnrZ on line 7 Notice: Undefined variable: headers in /in/sPnrZ on line 7 Warning: mail() expects parameter 1 to be string, null given in /in/sPnrZ on line 7
Output for hhvm-3.10.0
Notice: Undefined variable: to in /in/sPnrZ on line 7 Notice: Undefined variable: subject in /in/sPnrZ on line 7 Notice: Undefined variable: message in /in/sPnrZ on line 7 Notice: Undefined variable: headers in /in/sPnrZ on line 7
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: to in /in/sPnrZ on line 7 Notice: Undefined variable: subject in /in/sPnrZ on line 7 Notice: Undefined variable: message in /in/sPnrZ on line 7 Notice: Undefined variable: headers in /in/sPnrZ on line 7 Warning: mail() has been disabled for security reasons in /in/sPnrZ on line 7