3v4l.org

run code in 300+ PHP versions simultaneously
<?php $from_name = $_POST['name']; $from_email = $_POST['email']; $to = 'spiridavicius@gmail.com'; $subject = 'Message from web by '.$from_name; $message = $_POST['message']; $headers = 'From: '.$from_email.'' . "\r\n" . 'Reply-To: '.$to.'' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); header("location: index.php?contactok"); ?>

preferences:
34.09 ms | 402 KiB | 5 Q