3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
if(strlen($error_message) > 0) { died($error_message); } function clean_string($string) { $bad = array("content-type","bcc:","to:","cc:","href"); return str_replace($bad,"",$string); } $email_message .= "Naam: ".clean_string($name)."\n"; $email_message .= "Bedrijf: ".clean_string($bname)."\n"; $email_message .= "Telefoon: ".clean_string($tel)."\n"; $email_message .= "Email: ".clean_string($email)."\n"; $email_message .= "Vraag: ".clean_string($textarea)."\n"; // create email headers @mail($email_to, $email_subject, $email_message); header('Location:bedankt.html'); exit(); ?> <!-- include your own success html here --> <?php } ?>
based on 8VKeV
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.4.32
Parse error: syntax error, unexpected '}' in /in/tcBB8 on line 52
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '}' in /in/tcBB8 on line 52
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/tcBB8 on line 52
Process exited with code 255.