3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(isset($_POST['submit'])) { $name = $_POST['name']; echo "User Has submitted the form and entered this name : <b> $name </b>"; echo "<br>You can use the following form again to enter a new name."; } ?> <form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <input type="text" name="name"><br> <input type="submit" name="submit" value="Submit Form"><br> </form>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/PaiMX
function name:  (null)
number of ops:  17
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_IS                                         ~1      '_POST'
          1        ISSET_ISEMPTY_DIM_OBJ                         0          ~1, 'submit'
          2      > JMPZ                                                     ~2, ->11
    4     3    >   FETCH_R                      global              ~3      '_POST'
          4        FETCH_DIM_R                                      ~4      ~3, 'name'
          5        ASSIGN                                                   !0, ~4
    5     6        ROPE_INIT                                     3  ~7      'User+Has+submitted+the+form+and+entered+this+name+%3A+%3Cb%3E+'
          7        ROPE_ADD                                      1  ~7      ~7, !0
          8        ROPE_END                                      2  ~6      ~7, '+%3C%2Fb%3E'
          9        ECHO                                                     ~6
    6    10        ECHO                                                     '%3Cbr%3EYou+can+use+the+following+form+again+to+enter+a+new+name.'
    9    11    >   ECHO                                                     '%3Cform+method%3D%22post%22+action%3D%22'
         12        FETCH_R                      global              ~9      '_SERVER'
         13        FETCH_DIM_R                                      ~10     ~9, 'PHP_SELF'
         14        ECHO                                                     ~10
         15        ECHO                                                     '%22%3E%0A+++%3Cinput+type%3D%22text%22+name%3D%22name%22%3E%3Cbr%3E%0A+++%3Cinput+type%3D%22submit%22+name%3D%22submit%22+value%3D%22Submit+Form%22%3E%3Cbr%3E%0A%3C%2Fform%3E'
   12    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.85 ms | 1398 KiB | 13 Q