3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $curso=$_post['lista']; $nome=$_post['nome']; $morada=$_post['morada']; $contacto=$_post['contacto']; $email=$_post['email']; $profissional=$_post['spryradio1']; $email_from = 'geral@cooperativa-agricola.pt'; $email_subject = "Coonfagri-Novo Candidato"; $email_body ="Candidato ao Curso de $curso.\Nome : $nome\n Morada : $morada\n Contacto : $contacto\n Email : $email\n Regime : $profissional "; $to = "oskr.g6@gmail.com"; $headers = "From: $email_from \r\n"; $headers .= "Reply-To: $email \r\n"; mail($to,$email_subject,$email_body,$headers); header('Location: www.cooperativa-agricola.pt');
based on mIUp7
Output for 5.4.43 - 7.2.0
Notice: Undefined variable: _post in /in/dn7p6 on line 2 Notice: Undefined variable: _post in /in/dn7p6 on line 3 Notice: Undefined variable: _post in /in/dn7p6 on line 4 Notice: Undefined variable: _post in /in/dn7p6 on line 5 Notice: Undefined variable: _post in /in/dn7p6 on line 6 Notice: Undefined variable: _post in /in/dn7p6 on line 7 Warning: mail() has been disabled for security reasons in /in/dn7p6 on line 25 Warning: Cannot modify header information - headers already sent by (output started at /in/dn7p6:2) in /in/dn7p6 on line 26
Output for 5.3.25 - 5.3.29, 5.4.16 - 5.4.42
Notice: Undefined variable: _post in /in/dn7p6 on line 2 Notice: Undefined variable: _post in /in/dn7p6 on line 3 Notice: Undefined variable: _post in /in/dn7p6 on line 4 Notice: Undefined variable: _post in /in/dn7p6 on line 5 Notice: Undefined variable: _post in /in/dn7p6 on line 6 Notice: Undefined variable: _post in /in/dn7p6 on line 7 Warning: Cannot modify header information - headers already sent by (output started at /in/dn7p6:2) in /in/dn7p6 on line 26 sh: 1: /usr/bin/sendmail: not found
Output for 5.2.3 - 5.3.9, 5.3.11 - 5.3.24, 5.4.0 - 5.4.15
Notice: Undefined variable: _post in /in/dn7p6 on line 2 Notice: Undefined variable: _post in /in/dn7p6 on line 3 Notice: Undefined variable: _post in /in/dn7p6 on line 4 Notice: Undefined variable: _post in /in/dn7p6 on line 5 Notice: Undefined variable: _post in /in/dn7p6 on line 6 Notice: Undefined variable: _post in /in/dn7p6 on line 7 Warning: Cannot modify header information - headers already sent by (output started at /in/dn7p6:2) in /in/dn7p6 on line 26 sh: 1: /usr/sbin/sendmail: not found
Output for 5.3.10
Notice: Undefined variable: _post in /in/dn7p6 on line 2 Notice: Undefined variable: _post in /in/dn7p6 on line 3 Notice: Undefined variable: _post in /in/dn7p6 on line 4 Notice: Undefined variable: _post in /in/dn7p6 on line 5 Notice: Undefined variable: _post in /in/dn7p6 on line 6 Notice: Undefined variable: _post in /in/dn7p6 on line 7 Warning: Cannot modify header information - headers already sent by (output started at /in/dn7p6:2) in /in/dn7p6 on line 26 sh: 1: -t: not found
Output for 5.0.4 - 5.2.2
Notice: Undefined variable: _post in /in/dn7p6 on line 2 Notice: Undefined variable: _post in /in/dn7p6 on line 3 Notice: Undefined variable: _post in /in/dn7p6 on line 4 Notice: Undefined variable: _post in /in/dn7p6 on line 5 Notice: Undefined variable: _post in /in/dn7p6 on line 6 Notice: Undefined variable: _post in /in/dn7p6 on line 7 sh: 1: /usr/sbin/sendmail: not found
Output for 4.3.1 - 5.0.3
Notice: Undefined variable: _post in /in/dn7p6 on line 2 Notice: Undefined variable: _post in /in/dn7p6 on line 3 Notice: Undefined variable: _post in /in/dn7p6 on line 4 Notice: Undefined variable: _post in /in/dn7p6 on line 5 Notice: Undefined variable: _post in /in/dn7p6 on line 6 Notice: Undefined variable: _post in /in/dn7p6 on line 7 sh: 1: /usr/sbin/sendmail: not found
Output for 4.3.0
Notice: Undefined variable: _post in /in/dn7p6 on line 2 Notice: Undefined variable: _post in /in/dn7p6 on line 3 Notice: Undefined variable: _post in /in/dn7p6 on line 4 Notice: Undefined variable: _post in /in/dn7p6 on line 5 Notice: Undefined variable: _post in /in/dn7p6 on line 6 Notice: Undefined variable: _post in /in/dn7p6 on line 7 Warning: mail() has been disabled for security reasons in /in/dn7p6 on line 25