3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Fname = $_POST["Fname"]; $Lname = $_POST["Lname"]; $gender = $_POST["gender"]; $food = $_POST["food"]; $quote = $_POST["quote"]; $education = $_POST["education"]; $TofD = $_POST["TofD"]; if(isset($_POST['submit'])) { $name = $_POST['name']; echo "User Has submitted the form and entered this name : <b> $name </b>"; echo "<br>You can use the following form again to enter a new name."; } else { echo 'Hello, '.$Fname.' '.$Lname'<br />'; echo 'You are '.$gender.', and you like '; foreach ($food as $f) { echo $f'<br />'; } echo '<i>'$quote'</i><br />'; echo 'Youre favorite time is '.$TofD.', and you passed '.$education'!<br />'; } ?>
Output for 5.4.0 - 5.4.14
Parse error: syntax error, unexpected ''<br />'' (T_CONSTANT_ENCAPSED_STRING), expecting ',' or ';' in /in/fqoaA on line 17
Process exited with code 255.
Output for 5.3.0 - 5.3.24
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, expecting ',' or ';' in /in/fqoaA on line 17
Process exited with code 255.

preferences:
175.4 ms | 1395 KiB | 47 Q