3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $subject in /in/X4WJa on line 4 Warning: Undefined variable $detail in /in/X4WJa on line 7 Warning: Undefined variable $customer_mail in /in/X4WJa on line 10 Warning: Undefined variable $name in /in/X4WJa on line 13 Fatal error: Uncaught Error: Call to undefined function mail() in /in/X4WJa:17 Stack trace: #0 {main} thrown in /in/X4WJa on line 17
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
49.57 ms | 402 KiB | 8 Q