3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $fio = $_POST['fio']; $email = $_POST['email']; $message = $_POST['Message']; $fio = htmlspecialchars($fio); $email = htmlspecialchars($email); $message = htmlspecialchars($message); $fio = urldecode($fio); $email = urldecode($email); $message = urldecode($message); $fio = trim($fio); $email = trim($email); $message = trim($message); $mail = "srgiscool@mail.ru"; if (mail($mail, "Сообщение с сайта","ФИО:".$fio."Сообщение:".$message ,"From:".$email)) { echo "сообщение успешно отправлено"; } else { echo "при отправке сообщения возникли ошибки"; }?>
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
Notice: Undefined index: fio in /in/tPtCH on line 2 Notice: Undefined index: email in /in/tPtCH on line 3 Notice: Undefined index: Message in /in/tPtCH on line 4 Warning: mail() has been disabled for security reasons in /in/tPtCH on line 18 при отправке сообщения возникли ошибки
Output for hhvm-3.12.14 - 3.17.3
Notice: Undefined index: fio in /in/tPtCH on line 2 Notice: Undefined index: email in /in/tPtCH on line 3 Notice: Undefined index: Message in /in/tPtCH on line 4 Warning: htmlspecialchars() expects parameter 1 to be string, null given in /in/tPtCH on line 6 Warning: htmlspecialchars() expects parameter 1 to be string, null given in /in/tPtCH on line 7 Warning: htmlspecialchars() expects parameter 1 to be string, null given in /in/tPtCH on line 8 Warning: urldecode() expects parameter 1 to be string, null given in /in/tPtCH on line 10 Warning: urldecode() expects parameter 1 to be string, null given in /in/tPtCH on line 11 Warning: urldecode() expects parameter 1 to be string, null given in /in/tPtCH on line 12 Warning: trim() expects parameter 1 to be string, null given in /in/tPtCH on line 14 Warning: trim() expects parameter 1 to be string, null given in /in/tPtCH on line 15 Warning: trim() expects parameter 1 to be string, null given in /in/tPtCH on line 16 при отправке сообщения возникли ошибки