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>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QWmVR
function name:  (null)
number of ops:  49
compiled vars:  !0 = $First, !1 = $Last, !2 = $tel, !3 = $email, !4 = $product, !5 = $quantity, !6 = $total, !7 = $price
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FETCH_R                      global              ~8      '_POST'
          1        FETCH_DIM_R                                      ~9      ~8, 'firstname'
          2        ASSIGN                                                   !0, ~9
    5     3        FETCH_R                      global              ~11     '_POST'
          4        FETCH_DIM_R                                      ~12     ~11, 'lastname'
          5        ASSIGN                                                   !1, ~12
    6     6        FETCH_R                      global              ~14     '_POST'
          7        FETCH_DIM_R                                      ~15     ~14, 'tel'
          8        ASSIGN                                                   !2, ~15
    7     9        FETCH_R                      global              ~17     '_POST'
         10        FETCH_DIM_R                                      ~18     ~17, 'email'
         11        ASSIGN                                                   !3, ~18
    8    12        FETCH_R                      global              ~20     '_POST'
         13        FETCH_DIM_R                                      ~21     ~20, 'stationery'
         14        ASSIGN                                                   !4, ~21
    9    15        FETCH_R                      global              ~23     '_POST'
         16        FETCH_DIM_R                                      ~24     ~23, 'quantity'
         17        ASSIGN                                                   !5, ~24
   10    18        FETCH_R                      global              ~26     '_POST'
         19        FETCH_DIM_R                                      ~27     ~26, 'total'
         20        ASSIGN                                                   !6, ~27
   13    21        ECHO                                                     'your+order+details+are+as+follows%3Cbr%3E'
   14    22        CONCAT                                           ~29     'customer%27s+first+name%3A', !0
         23        CONCAT                                           ~30     ~29, '%3Cbr%3E'
         24        ECHO                                                     ~30
   15    25        CONCAT                                           ~31     'customer%27s+Last+name%3A', !1
         26        CONCAT                                           ~32     ~31, '%3Cbr%3E'
         27        ECHO                                                     ~32
   16    28        CONCAT                                           ~33     'customer%27s+Telephone+%3A', !2
         29        CONCAT                                           ~34     ~33, '%3Cbr%3E'
         30        ECHO                                                     ~34
   17    31        CONCAT                                           ~35     'customer%27s+Email+%3A', !3
         32        CONCAT                                           ~36     ~35, '%3Cbr%3E'
         33        ECHO                                                     ~36
   18    34        CONCAT                                           ~37     'product+names%3A', !4
         35        CONCAT                                           ~38     ~37, '%3Cbr%3E'
         36        ECHO                                                     ~38
   19    37        CONCAT                                           ~39     'quantity+ordered%3A', !5
         38        CONCAT                                           ~40     ~39, '%3Cbr%3E'
         39        ECHO                                                     ~40
   22    40        ASSIGN                                                   !7, 40
   23    41        MUL                                              ~42     !5, !7
         42        ASSIGN                                                   !6, ~42
   24    43        CONCAT                                           ~44     'The+Total+cost+of+your+supply+is%3A', !6
         44        CONCAT                                           ~45     ~44, '%3Cbr%2F%3E'
         45        ECHO                                                     ~45
   25    46        ECHO                                                     '%3CB%3E+%3Ci%3EThank+You%21%21%21%3C%2Fi%3E%3C%2FB%3E'
   26    47        ECHO                                                     '%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   28    48      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.16 ms | 1399 KiB | 13 Q