3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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"); ?>
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined index: name in /in/cNB2p on line 2 Notice: Undefined index: email in /in/cNB2p on line 3 Notice: Undefined index: message in /in/cNB2p on line 6 Warning: mail() has been disabled for security reasons in /in/cNB2p on line 11 Warning: Cannot modify header information - headers already sent by (output started at /in/cNB2p:2) in /in/cNB2p on line 12
Output for hhvm-3.12.0 - 3.13.2
Notice: Undefined index: name in /in/cNB2p on line 2 Notice: Undefined index: email in /in/cNB2p on line 3 Notice: Undefined index: message in /in/cNB2p on line 6 Warning: mail() expects parameter 3 to be string, null given in /in/cNB2p on line 11
Output for hhvm-3.10.0
Notice: Undefined index: name in /in/cNB2p on line 2 Notice: Undefined index: email in /in/cNB2p on line 3 Notice: Undefined index: message in /in/cNB2p on line 6
Output for 5.2.3 - 5.2.17
Notice: Undefined index: name in /in/cNB2p on line 2 Notice: Undefined index: email in /in/cNB2p on line 3 Notice: Undefined index: message in /in/cNB2p on line 6 Warning: mail() has been disabled for security reasons in /in/cNB2p on line 11 Warning: Cannot modify header information - headers already sent by (output started at /in/cNB2p:2) in /in/cNB2p on line 12
Output for 4.3.0 - 5.2.2
Notice: Undefined index: name in /in/cNB2p on line 2 Notice: Undefined index: email in /in/cNB2p on line 3 Notice: Undefined index: message in /in/cNB2p on line 6 Warning: mail() has been disabled for security reasons in /in/cNB2p on line 11