3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(isset($_POST['submit'])) ( $msg = 'Name: ' .$_POST['FirstName'] .$_POST['LastName'] ."\n" .'Email: ' .$_POST['Email'] ."\n" .'Message: ' .$_POST['Message']; mail('email@me.com', 'Message from website', $msg); header('location: contact-thank-you.php'); ) else ( header('location: contact.php'); exit(0); ) ) ?>
Output for 5.3.0 - 5.3.19, 5.4.0 - 5.4.9
Parse error: syntax error, unexpected ';' in /in/pKHAR on line 5
Process exited with code 255.

preferences:
174.89 ms | 1395 KiB | 37 Q