3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "firstname" in /in/05ZRP on line 5 Warning: Undefined array key "lastname" in /in/05ZRP on line 6 Warning: Undefined array key "tel" in /in/05ZRP on line 7 Warning: Undefined array key "email" in /in/05ZRP on line 8 Warning: Undefined array key "stationery" in /in/05ZRP on line 9 Warning: Undefined array key "quantity" in /in/05ZRP on line 10 Warning: Undefined array key "total" in /in/05ZRP on line 11 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>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
44.1 ms | 402 KiB | 8 Q