3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "fio" in /in/tPtCH on line 2 Warning: Undefined array key "email" in /in/tPtCH on line 3 Warning: Undefined array key "Message" in /in/tPtCH on line 4 Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /in/tPtCH on line 6 Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /in/tPtCH on line 7 Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /in/tPtCH on line 8 Fatal error: Uncaught Error: Call to undefined function mail() in /in/tPtCH:18 Stack trace: #0 {main} thrown in /in/tPtCH 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:
46.23 ms | 402 KiB | 8 Q