3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
Name: <input type="text" name="name" value="<?php echo $name;?>"> E-mail: <input type="text" name="email" value="<?php echo $email;?>"> Website: <input type="text" name="website" value="<?php echo $website;?>"> Comment: <textarea name="comment" rows="5" cols="40"><?php echo $comment;?></textarea> Gender: <input type="radio" name="gender" <?php if (isset($gender) && $gender=="female") echo "checked";?> value="female">Female <input type="radio" name="gender" <?php if (isset($gender) && $gender=="male") echo "checked";?> value="male">Male
Output for 5.0.4 - 7.1.0
Name: <input type="text" name="name" value=" Notice: Undefined variable: name in /in/eSvQT on line 1 "> E-mail: <input type="text" name="email" value=" Notice: Undefined variable: email in /in/eSvQT on line 3 "> Website: <input type="text" name="website" value=" Notice: Undefined variable: website in /in/eSvQT on line 5 "> Comment: <textarea name="comment" rows="5" cols="40"> Notice: Undefined variable: comment in /in/eSvQT on line 7 </textarea> Gender: <input type="radio" name="gender" value="female">Female <input type="radio" name="gender" value="male">Male
Output for 4.3.0 - 5.0.3
Name: <input type="text" name="name" value=" Notice: Undefined variable: name in /in/eSvQT on line 1 "> E-mail: <input type="text" name="email" value=" Notice: Undefined variable: email in /in/eSvQT on line 3 "> Website: <input type="text" name="website" value=" Notice: Undefined variable: website in /in/eSvQT on line 5 "> Comment: <textarea name="comment" rows="5" cols="40"> Notice: Undefined variable: comment in /in/eSvQT on line 7 </textarea> Gender: <input type="radio" name="gender" value="female">Female <input type="radio" name="gender" value="male">Male