3v4l.org

run code in 300+ PHP versions simultaneously
<? //Created By MD55 Bütün Haklarý Saklýdýr... // Bunlarý Kendinize Göre Ayarlýyacaksýnýz... $address = 'mbcortoglu@yandex.com'; // Gönderilmesini Ýstediðin Mail Adresi... $subj = 'FormMailden Mail Geldi'; // Mesajýn Baþlýðý... //$returnto = 'http://www.cort.cf'; // Mail Gönderildikten Sonraki Gözüken Sitenin Adresi... //Lütfen Geri Kalan Kodda Deðiþiklik Yapmayýnýz Çalýþmayabilir... $address = ($_POST['sendto'])?$_POST['sendto']:$address; $subj = ($_POST['subject'])?$_POST['subject']:$subj; $returnto = ($_POST['returnto'])?$_POST['returnto']:$returnto; if (eregi('^.+@.+\.[a-z]{2,6}',$_POST['email'])) { $email = $_POST['email']; $message = ""; } else { $email = $address; $message = ""; } foreach ($_POST as $key => $val) { if ($key != 'returnto' && $key != 'email' && $key != 'subject' && $key != 'sendto') { $message .= ''.$val."\n"; } } $message = stripslashes($message); if (@mail($address, $subj, $message,"From: ".$email)) { if ($returnto) { header('Location: '.$returnto); } else { ?><html><body><center><font color="green"><b>Mail Gönderildi!</b></font><p><a href="JavaScript:history.back()">Geri Dön</a></center></body></html><? } } else { ?><html><body><center><font color="red"><b>MAili Göndermekte Bir Sorun Yaþanýyor</b></font><p><a href="JavaScript:history.back()">Geri Dön</a></center></body></html><? } ?>
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.2.29 - 7.2.33, 7.3.16 - 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.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
<? //Created By MD55 Bütün Haklarý Saklýdýr... // Bunlarý Kendinize Göre Ayarlýyacaksýnýz... $address = 'mbcortoglu@yandex.com'; // Gönderilmesini Ýstediðin Mail Adresi... $subj = 'FormMailden Mail Geldi'; // Mesajýn Baþlýðý... //$returnto = 'http://www.cort.cf'; // Mail Gönderildikten Sonraki Gözüken Sitenin Adresi... //Lütfen Geri Kalan Kodda Deðiþiklik Yapmayýnýz Çalýþmayabilir... $address = ($_POST['sendto'])?$_POST['sendto']:$address; $subj = ($_POST['subject'])?$_POST['subject']:$subj; $returnto = ($_POST['returnto'])?$_POST['returnto']:$returnto; if (eregi('^.+@.+\.[a-z]{2,6}',$_POST['email'])) { $email = $_POST['email']; $message = ""; } else { $email = $address; $message = ""; } foreach ($_POST as $key => $val) { if ($key != 'returnto' && $key != 'email' && $key != 'subject' && $key != 'sendto') { $message .= ''.$val."\n"; } } $message = stripslashes($message); if (@mail($address, $subj, $message,"From: ".$email)) { if ($returnto) { header('Location: '.$returnto); } else { ?><html><body><center><font color="green"><b>Mail Gönderildi!</b></font><p><a href="JavaScript:history.back()">Geri Dön</a></center></body></html><? } } else { ?><html><body><center><font color="red"><b>MAili Göndermekte Bir Sorun Yaþanýyor</b></font><p><a href="JavaScript:history.back()">Geri Dön</a></center></body></html><? } ?>
Output for 8.0.13
Warning: Undefined array key "sendto" in /in/5GG4D on line 11 Warning: Undefined array key "subject" in /in/5GG4D on line 12 Warning: Undefined array key "returnto" in /in/5GG4D on line 13 Warning: Undefined variable $returnto in /in/5GG4D on line 13 Fatal error: Uncaught Error: Call to undefined function eregi() in /in/5GG4D:15 Stack trace: #0 {main} thrown in /in/5GG4D on line 15
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.6, 7.4.33
Notice: Undefined index: sendto in /in/5GG4D on line 11 Notice: Undefined index: subject in /in/5GG4D on line 12 Notice: Undefined index: returnto in /in/5GG4D on line 13 Notice: Undefined variable: returnto in /in/5GG4D on line 13 Fatal error: Uncaught Error: Call to undefined function eregi() in /in/5GG4D:15 Stack trace: #0 {main} thrown in /in/5GG4D on line 15
Process exited with code 255.
Output for 7.3.32 - 7.3.33
Fatal error: Uncaught Error: Call to undefined function eregi() in /in/5GG4D:15 Stack trace: #0 {main} thrown in /in/5GG4D on line 15
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28
Notice: Undefined index: sendto in /in/5GG4D on line 11 Notice: Undefined index: subject in /in/5GG4D on line 12 Notice: Undefined index: returnto in /in/5GG4D on line 13 Notice: Undefined variable: returnto in /in/5GG4D on line 13 Notice: Undefined index: email in /in/5GG4D on line 15 Deprecated: Function eregi() is deprecated in /in/5GG4D on line 15 <html><body><center><font color="red"><b>MAili Göndermekte Bir Sorun Yaþanýyor</b></font><p><a href="JavaScript:history.back()">Geri Dön</a></center></body></html>

preferences:
256.04 ms | 403 KiB | 354 Q