3v4l.org

run code in 300+ PHP versions simultaneously
html> <?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/HkfEo
function name:  (null)
number of ops:  50
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
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     'html%3E%0A'
    4     1        FETCH_R                      global              ~8      '_POST'
          2        FETCH_DIM_R                                      ~9      ~8, 'firstname'
          3        ASSIGN                                                   !0, ~9
    5     4        FETCH_R                      global              ~11     '_POST'
          5        FETCH_DIM_R                                      ~12     ~11, 'lastname'
          6        ASSIGN                                                   !1, ~12
    6     7        FETCH_R                      global              ~14     '_POST'
          8        FETCH_DIM_R                                      ~15     ~14, 'tel'
          9        ASSIGN                                                   !2, ~15
    7    10        FETCH_R                      global              ~17     '_POST'
         11        FETCH_DIM_R                                      ~18     ~17, 'email'
         12        ASSIGN                                                   !3, ~18
    8    13        FETCH_R                      global              ~20     '_POST'
         14        FETCH_DIM_R                                      ~21     ~20, 'stationery'
         15        ASSIGN                                                   !4, ~21
    9    16        FETCH_R                      global              ~23     '_POST'
         17        FETCH_DIM_R                                      ~24     ~23, 'quantity'
         18        ASSIGN                                                   !5, ~24
   10    19        FETCH_R                      global              ~26     '_POST'
         20        FETCH_DIM_R                                      ~27     ~26, 'total'
         21        ASSIGN                                                   !6, ~27
   13    22        ECHO                                                     'your+order+details+are+as+follows%3Cbr%3E'
   14    23        CONCAT                                           ~29     'customer%27s+first+name%3A', !0
         24        CONCAT                                           ~30     ~29, '%3Cbr%3E'
         25        ECHO                                                     ~30
   15    26        CONCAT                                           ~31     'customer%27s+Last+name%3A', !1
         27        CONCAT                                           ~32     ~31, '%3Cbr%3E'
         28        ECHO                                                     ~32
   16    29        CONCAT                                           ~33     'customer%27s+Telephone+%3A', !2
         30        CONCAT                                           ~34     ~33, '%3Cbr%3E'
         31        ECHO                                                     ~34
   17    32        CONCAT                                           ~35     'customer%27s+Email+%3A', !3
         33        CONCAT                                           ~36     ~35, '%3Cbr%3E'
         34        ECHO                                                     ~36
   18    35        CONCAT                                           ~37     'product+names%3A', !4
         36        CONCAT                                           ~38     ~37, '%3Cbr%3E'
         37        ECHO                                                     ~38
   19    38        CONCAT                                           ~39     'quantity+ordered%3A', !5
         39        CONCAT                                           ~40     ~39, '%3Cbr%3E'
         40        ECHO                                                     ~40
   22    41        ASSIGN                                                   !7, 40
   23    42        MUL                                              ~42     !5, !7
         43        ASSIGN                                                   !6, ~42
   24    44        CONCAT                                           ~44     'The+Total+cost+of+your+supply+is%3A', !6
         45        CONCAT                                           ~45     ~44, '%3Cbr%2F%3E'
         46        ECHO                                                     ~45
   25    47        ECHO                                                     '%3CB%3E+%3Ci%3EThank+You%21%21%21%3C%2Fi%3E%3C%2FB%3E'
   26    48        ECHO                                                     '%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   28    49      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.15 ms | 1399 KiB | 13 Q