3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Contact subject $subject ="$subject"; // Details $message="$detail"; // Mail of sender $mail_from="$customer_mail"; // From $header="from: $name <$mail_from>"; // Enter your email address $to ='someone@somewhere.com'; $send_contact=mail($to,$subject,$message,$header); // Check, if message sent to your email // display message "We've recived your information" if($send_contact){ echo "We've recived your contact information"; } else { echo "ERROR"; } ?>
Output for 5.0.4 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: subject in /in/X4WJa on line 4 Notice: Undefined variable: detail in /in/X4WJa on line 7 Notice: Undefined variable: customer_mail in /in/X4WJa on line 10 Notice: Undefined variable: name in /in/X4WJa on line 13 Warning: mail() has been disabled for security reasons in /in/X4WJa on line 17 ERROR
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: subject in /in/X4WJa on line 4 Notice: Undefined variable: detail in /in/X4WJa on line 7 Notice: Undefined variable: customer_mail in /in/X4WJa on line 10 Notice: Undefined variable: name in /in/X4WJa on line 13 ERROR
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: subject in /in/X4WJa on line 4 Notice: Undefined variable: detail in /in/X4WJa on line 7 Notice: Undefined variable: customer_mail in /in/X4WJa on line 10 Notice: Undefined variable: name in /in/X4WJa on line 13 Warning: mail() has been disabled for security reasons in /in/X4WJa on line 17 ERROR