3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> </head> <body> <form method ="POST" action ="tag.php"> Fruit name : <input type ="text" name="fruit"/> <br> Price/KG<input type="text" name="price"/> <br> <input type="submit" value="submit the price" name="submit1"/> </form> <?php $fru =$_POST['fruit']; $cost =$_POST['price']; echo "the fruit is $fru and its price is $cost"; ?> </body> </html>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/THSXb
function name:  (null)
number of ops:  14
compiled vars:  !0 = $fru, !1 = $cost
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3Chtml%3E%0A%0A%0A%3Chead%3E%0A%3C%2Fhead%3E%0A%0A%0A%3Cbody%3E%0A%3Cform+method+%3D%22POST%22+action+%3D%22tag.php%22%3E%0A%0AFruit+name+%3A+%3Cinput+type+%3D%22text%22+name%3D%22fruit%22%2F%3E%0A%3Cbr%3E%0APrice%2FKG%3Cinput+type%3D%22text%22+name%3D%22price%22%2F%3E%0A%3Cbr%3E%0A%3Cinput+type%3D%22submit%22+value%3D%22submit+the+price%22+name%3D%22submit1%22%2F%3E%0A%3C%2Fform%3E%0A'
   18     1        FETCH_R                      global              ~2      '_POST'
          2        FETCH_DIM_R                                      ~3      ~2, 'fruit'
          3        ASSIGN                                                   !0, ~3
   20     4        FETCH_R                      global              ~5      '_POST'
          5        FETCH_DIM_R                                      ~6      ~5, 'price'
          6        ASSIGN                                                   !1, ~6
   22     7        ROPE_INIT                                     4  ~9      'the+fruit+is+'
          8        ROPE_ADD                                      1  ~9      ~9, !0
          9        ROPE_ADD                                      2  ~9      ~9, '+and+its+price+is+'
         10        ROPE_END                                      3  ~8      ~9, !1
         11        ECHO                                                     ~8
   25    12        ECHO                                                     '%0A%3C%2Fbody%3E%0A%3C%2Fhtml%3E'
   27    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.11 ms | 1012 KiB | 13 Q