3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // receive the data and assign them to variables $cust=$_POST['customer']; $prod=$_POST['product']; $qty=$_POST['qty']; //print out the values echo "Your Order details are as follows<br>"; echo "Customer names : ". $cust."<br>"; echo "Product name:".$prod."<br>"; echo "Quantity ordered :".$qty."<br>"; ?>
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined index: customer in /in/LqIlG on line 5 Notice: Undefined index: product in /in/LqIlG on line 6 Notice: Undefined index: qty in /in/LqIlG on line 7 Your Order details are as follows<br>Customer names : <br>Product name:<br>Quantity ordered :<br>
Output for 4.3.0 - 5.2.17
Notice: Undefined index: customer in /in/LqIlG on line 5 Notice: Undefined index: product in /in/LqIlG on line 6 Notice: Undefined index: qty in /in/LqIlG on line 7 Your Order details are as follows<br>Customer names : <br>Product name:<br>Quantity ordered :<br>