3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $firstname=$_POST['firstname']; $lastname=$_POST['lastname']; $tel=$_POST['tel']; $email=$_POST['email']; $product=$_POST['stationery']; $quantity=$_POST['quantity']; $total=$_POST['total']; //print out the values echo "your order details are as follows<br>"; echo "customer's first name:".$firstname."<br>"; echo "customer's Last name:".$lastname."<br>"; echo "customer's Telephone :".$tel."<br>"; echo "customer's Email :".$email."<br>"; echo "product names:".$product."<br>"; echo "quantity ordered:".$quantity."<br>"; ?>
Output for 5.3.0 - 7.1.0
Notice: Undefined index: firstname in /in/FsUou on line 3 Notice: Undefined index: lastname in /in/FsUou on line 4 Notice: Undefined index: tel in /in/FsUou on line 5 Notice: Undefined index: email in /in/FsUou on line 6 Notice: Undefined index: stationery in /in/FsUou on line 7 Notice: Undefined index: quantity in /in/FsUou on line 8 Notice: Undefined index: total in /in/FsUou on line 9 your order details are as follows<br>customer's first name:<br>customer's Last name:<br>customer's Telephone :<br>customer's Email :<br>product names:<br>quantity ordered:<br>
Output for 4.3.0 - 5.2.17
Notice: Undefined index: firstname in /in/FsUou on line 3 Notice: Undefined index: lastname in /in/FsUou on line 4 Notice: Undefined index: tel in /in/FsUou on line 5 Notice: Undefined index: email in /in/FsUou on line 6 Notice: Undefined index: stationery in /in/FsUou on line 7 Notice: Undefined index: quantity in /in/FsUou on line 8 Notice: Undefined index: total in /in/FsUou on line 9 your order details are as follows<br>customer's first name:<br>customer's Last name:<br>customer's Telephone :<br>customer's Email :<br>product names:<br>quantity ordered:<br>