3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<? $ime = $_POST['ime']; $email = $_POST['email']; $komentar = $_POST['komentar']; $sadrzaj_maila="Ime: $ime\n\nKomentar: $komentar"; $primatelj = "gruberit@gmail.com"; $naslov = "Komentar s weba"; $mailzaglavlje = "From: $email\r\n"; $mailzaglavlje .= "Reply-To: $email\r\n"; $mailzaglavlje .= "MIME-Version: 1.0\r\n"; mail($primatelj, $naslov, $sadrzaj_maila, $mailzaglavlje) or die("Greška!"); header("Location:http://vasadomena.hr/hvalavamnakomentaru.php "); ?>
Output for 5.4.0 - 7.1.0
Notice: Undefined index: ime in /in/agWjq on line 2 Notice: Undefined index: email in /in/agWjq on line 3 Notice: Undefined index: komentar in /in/agWjq on line 4 Warning: mail() has been disabled for security reasons in /in/agWjq on line 11 Greška!
Output for 4.3.0 - 5.3.29
<? $ime = $_POST['ime']; $email = $_POST['email']; $komentar = $_POST['komentar']; $sadrzaj_maila="Ime: $ime\n\nKomentar: $komentar"; $primatelj = "gruberit@gmail.com"; $naslov = "Komentar s weba"; $mailzaglavlje = "From: $email\r\n"; $mailzaglavlje .= "Reply-To: $email\r\n"; $mailzaglavlje .= "MIME-Version: 1.0\r\n"; mail($primatelj, $naslov, $sadrzaj_maila, $mailzaglavlje) or die("Greška!"); header("Location:http://vasadomena.hr/hvalavamnakomentaru.php "); ?>