3v4l.org

run code in 500+ PHP versions simultaneously
<?php // 1. Set your target (the ruutukf.com address from your screenshot) $to = "your-ga99i8uzel@ruutukf.com"; // 2. Set the "Spoofed" identity $subject = "URGENT: Your Prize Claim - Project Test"; $from = "admin@gigahertzgiveaways.co.uk"; // 3. Craft the headers (This is where the spoofing happens) $headers = "From: " . $from . "\r\n"; $headers .= "Reply-To: " . $from . "\r\n"; $headers .= "X-Mailer: PHP/" . phpversion(); // 4. The "Phishing" Body $message = "Congratulations! You have won the jackpot. Please reply to this email to claim your prize."; // 5. Execute the send if(mail($to, $subject, $message, $headers)) { echo "SUCCESS: The spoofed email has been sent to $to"; } else { echo "ERROR: The server blocked the mail() function."; } ?><?php // 1. Set your target (the ruutukf.com address from your screenshot) $to = "your-ga99i8uzel@ruutukf.com"; // 2. Set the "Spoofed" identity $subject = "URGENT: Your Prize Claim - Project Test"; $from = "admin@gigahertzgiveaways.co.uk"; // 3. Craft the headers (This is where the spoofing happens) $headers = "From: " . $from . "\r\n"; $headers .= "Reply-To: " . $from . "\r\n"; $headers .= "X-Mailer: PHP/" . phpversion(); // 4. The "Phishing" Body $message = "Congratulations! You have won the jackpot. Please reply to this email to claim your prize."; // 5. Execute the send if(mail($to, $subject, $message, $headers)) { echo "SUCCESS: The spoofed email has been sent to $to"; } else { echo "ERROR: The server blocked the mail() function."; } ?>
Output for git.master_jit, git.master
Fatal error: Uncaught Error: Call to undefined function mail() in /in/n4pia:18 Stack trace: #0 {main} thrown in /in/n4pia on line 18
Process exited with code 255.

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:
43.62 ms | 707 KiB | 4 Q