3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php //receive the data and assign them to variables $First=$_POST['firstname']; $Last=$_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:".$First."<br>"; echo "customer's Last name:".$Last."<br>"; echo "customer's Telephone :".$tel."<br>"; echo "customer's Email :".$email."<br>"; echo "product names:".$product."<br>"; echo "quantity ordered:".$quantity."<br>"; $price=40; $total=$quantity*$price; echo "The Total cost of your supply is:".$total."<br/>"; echo "<B> <i>Thank You!!!</i></B>";?> </body> </html>
Output for 5.3.0 - 7.1.0
Notice: Undefined index: firstname in /in/QWmVR on line 4 Notice: Undefined index: lastname in /in/QWmVR on line 5 Notice: Undefined index: tel in /in/QWmVR on line 6 Notice: Undefined index: email in /in/QWmVR on line 7 Notice: Undefined index: stationery in /in/QWmVR on line 8 Notice: Undefined index: quantity in /in/QWmVR on line 9 Notice: Undefined index: total in /in/QWmVR on line 10 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>The Total cost of your supply is:0<br/><B> <i>Thank You!!!</i></B> </body> </html>
Output for 4.3.0 - 5.2.17
Notice: Undefined index: firstname in /in/QWmVR on line 4 Notice: Undefined index: lastname in /in/QWmVR on line 5 Notice: Undefined index: tel in /in/QWmVR on line 6 Notice: Undefined index: email in /in/QWmVR on line 7 Notice: Undefined index: stationery in /in/QWmVR on line 8 Notice: Undefined index: quantity in /in/QWmVR on line 9 Notice: Undefined index: total in /in/QWmVR on line 10 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>The Total cost of your supply is:0<br/><B> <i>Thank You!!!</i></B> </body> </html>