3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(empty($_POST['name']) || empty($_POST['emailz']) || empty($_POST['phone']) || empty($_POST['message']) || !filter_var($_POST['emailz'],FILTER_VALIDATE_EMAIL)) { echo "No arguments Provided!!"; return false; } $name = $_POST['name']; $email = $_POST['emailz']; $phone = $_POST['phone']; $message = $_POST['message']; $headers = "From: noreply@yourdomain.com\n"; // This is the email address the generated message will be from $headers .= "Reply-To: $emailz"; $subject = 'New Message - Kieronboz.co.uk - $name'; $body = "You have received a new message from your website contact form.\n\n"."Here are the details:\n\nName: $name\n\nEmail: $emailz\n\nPhone: $phone\n\nMessage:\n$message"; mail("kieronboz@gmail.com",$subject,$body,$headers); return true; ?>
Output for git.master, git.master_jit, rfc.property-hooks
No arguments Provided!!

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:
37.54 ms | 401 KiB | 8 Q