3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<html> <body> <?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>"; ?> </body> </html>
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<html> <body> Notice: Undefined index: customer in /in/H4rhJ on line 8 Notice: Undefined index: product in /in/H4rhJ on line 9 Notice: Undefined index: qty in /in/H4rhJ on line 10 Your Order details are as follows<br>Customer names : <br>Product name:<br>Quantity ordered :<br></body> </html>
Output for 4.3.0 - 5.2.17
<html> <body> Notice: Undefined index: customer in /in/H4rhJ on line 8 Notice: Undefined index: product in /in/H4rhJ on line 9 Notice: Undefined index: qty in /in/H4rhJ on line 10 Your Order details are as follows<br>Customer names : <br>Product name:<br>Quantity ordered :<br></body> </html>