3v4l.org

run code in 150+ 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 = "ruipinheiro65@hotmail.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');
Output for 5.2.3 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined variable: _post in /in/mIUp7 on line 2 Notice: Undefined variable: _post in /in/mIUp7 on line 3 Notice: Undefined variable: _post in /in/mIUp7 on line 4 Notice: Undefined variable: _post in /in/mIUp7 on line 5 Notice: Undefined variable: _post in /in/mIUp7 on line 6 Notice: Undefined variable: _post in /in/mIUp7 on line 7 Warning: mail() has been disabled for security reasons in /in/mIUp7 on line 25 Warning: Cannot modify header information - headers already sent by (output started at /in/mIUp7:2) in /in/mIUp7 on line 26
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: _post in /in/mIUp7 on line 2 Notice: Undefined variable: _post in /in/mIUp7 on line 3 Notice: Undefined variable: _post in /in/mIUp7 on line 4 Notice: Undefined variable: _post in /in/mIUp7 on line 5 Notice: Undefined variable: _post in /in/mIUp7 on line 6 Notice: Undefined variable: _post in /in/mIUp7 on line 7
Output for 5.0.4 - 5.2.2
Notice: Undefined variable: _post in /in/mIUp7 on line 2 Notice: Undefined variable: _post in /in/mIUp7 on line 3 Notice: Undefined variable: _post in /in/mIUp7 on line 4 Notice: Undefined variable: _post in /in/mIUp7 on line 5 Notice: Undefined variable: _post in /in/mIUp7 on line 6 Notice: Undefined variable: _post in /in/mIUp7 on line 7 Warning: mail() has been disabled for security reasons in /in/mIUp7 on line 25
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: _post in /in/mIUp7 on line 2 Notice: Undefined variable: _post in /in/mIUp7 on line 3 Notice: Undefined variable: _post in /in/mIUp7 on line 4 Notice: Undefined variable: _post in /in/mIUp7 on line 5 Notice: Undefined variable: _post in /in/mIUp7 on line 6 Notice: Undefined variable: _post in /in/mIUp7 on line 7 Warning: mail() has been disabled for security reasons in /in/mIUp7 on line 25