3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 : '; echo $name; echo 'You can use the following form again to enter a new name.'; } else { echo 'Hello, '; echo $Fname; echo $Lname; echo 'You are '; echo $gender; echo 'and you like '; foreach ($food as $f) { echo $f; } echo $quote; echo 'Youre favorite time is '; echo $TofD; echo 'and you passed '; echo $education; } ?>
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Notice: Undefined index: Fname in /in/H7EmU on line 2 Notice: Undefined index: Lname in /in/H7EmU on line 3 Notice: Undefined index: gender in /in/H7EmU on line 4 Notice: Undefined index: food in /in/H7EmU on line 5 Notice: Undefined index: quote in /in/H7EmU on line 6 Notice: Undefined index: education in /in/H7EmU on line 7 Notice: Undefined index: TofD in /in/H7EmU on line 8 Hello, You are and you like Warning: Invalid argument supplied for foreach() in /in/H7EmU on line 24 Youre favorite time is and you passed
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined index: Fname in /in/H7EmU on line 2 Notice: Undefined index: Lname in /in/H7EmU on line 3 Notice: Undefined index: gender in /in/H7EmU on line 4 Notice: Undefined index: food in /in/H7EmU on line 5 Notice: Undefined index: quote in /in/H7EmU on line 6 Notice: Undefined index: education in /in/H7EmU on line 7 Notice: Undefined index: TofD in /in/H7EmU on line 8 Hello, You are and you like Warning: Invalid argument supplied for foreach() in /in/H7EmU on line 26 Youre favorite time is and you passed
Output for 4.3.0 - 4.3.10, 4.4.0 - 5.2.17
Notice: Undefined index: Fname in /in/H7EmU on line 2 Notice: Undefined index: Lname in /in/H7EmU on line 3 Notice: Undefined index: gender in /in/H7EmU on line 4 Notice: Undefined index: food in /in/H7EmU on line 5 Notice: Undefined index: quote in /in/H7EmU on line 6 Notice: Undefined index: education in /in/H7EmU on line 7 Notice: Undefined index: TofD in /in/H7EmU on line 8 Hello, You are and you like Warning: Invalid argument supplied for foreach() in /in/H7EmU on line 24 Youre favorite time is and you passed
Output for 4.3.11
Notice: Undefined index: Fname in /in/H7EmU on line 2 Notice: Undefined index: Lname in /in/H7EmU on line 3 Notice: Undefined index: gender in /in/H7EmU on line 4 Notice: Undefined index: food in /in/H7EmU on line 5 Notice: Undefined index: quote in /in/H7EmU on line 6 Notice: Undefined index: education in /in/H7EmU on line 7 Notice: Undefined index: TofD in /in/H7EmU on line 8 Hello, You are and you like Youre favorite time is and you passed