3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <head><title>home</title></head> <body> <?php if (filter_has_var(INPUT_POST, "username")){ // the form exists, so work with it $username=filter_input(INPUT_POST, "username"); print "<center><h1>Great going $username!<br>What type of room would you like to create?</h1></center>"; } else { //there's no input, hence create the form print <<<HERE <form action="php/index.php" method="post"> <center> <input type="text" name="fullname" placeholder="Full Name" size="25" required> <input type="email" name="email" placeholder="Email or Mobile" size="25" required> <input type="password" name="psw" placeholder="Password" size="25" required> </center><br> <input type="submit" value="Here You Go!"/><br><br> <center><h4>By clicking "Here You Go!" you agree with our terms & conditions and private policy.</h4></center> </form> HERE; } //end 'value exists' if ?> </body> </html>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 16
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/djrjq
function name:  (null)
number of ops:  19
compiled vars:  !0 = $username
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '%3C%21DOCTYPE+html%3E+%0A%3Chead%3E%3Ctitle%3Ehome%3C%2Ftitle%3E%3C%2Fhead%3E+%0A%3Cbody%3E+%0A'
    4     1        INIT_FCALL                                               'filter_has_var'
          2        SEND_VAL                                                 0
          3        SEND_VAL                                                 'username'
          4        DO_ICALL                                         $1      
          5      > JMPZ                                                     $1, ->16
    6     6    >   INIT_FCALL                                               'filter_input'
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 'username'
          9        DO_ICALL                                         $2      
         10        ASSIGN                                                   !0, $2
    7    11        ROPE_INIT                                     3  ~5      '%3Ccenter%3E%3Ch1%3EGreat+going+'
         12        ROPE_ADD                                      1  ~5      ~5, !0
         13        ROPE_END                                      2  ~4      ~5, '%21%3Cbr%3EWhat+type+of+room+would+you+like+to+create%3F%3C%2Fh1%3E%3C%2Fcenter%3E'
         14        ECHO                                                     ~4
    4    15      > JMP                                                      ->17
   11    16    >   ECHO                                                     '%3Cform+action%3D%22php%2Findex.php%22+method%3D%22post%22%3E+%3Ccenter%3E+++++%0A%3Cinput+type%3D%22text%22+name%3D%22fullname%22+placeholder%3D%22Full+Name%22+size%3D%2225%22+required%3E+%0A%3Cinput+type%3D%22email%22+name%3D%22email%22+placeholder%3D%22Email+or+Mobile%22+size%3D%2225%22+required%3E+%0A%3Cinput+type%3D%22password%22+name%3D%22psw%22+placeholder%3D%22Password%22+size%3D%2225%22+required%3E+%3C%2Fcenter%3E%3Cbr%3E+%0A%3Cinput+type%3D%22submit%22+value%3D%22Here+You+Go%21%22%2F%3E%3Cbr%3E%3Cbr%3E+%0A%3Ccenter%3E%3Ch4%3EBy+clicking+%22Here+You+Go%21%22+you+agree+with+our+terms+%26+conditions+and+private+policy.%3C%2Fh4%3E%3C%2Fcenter%3E+%3C%2Fform%3E'
   18    17    >   ECHO                                                     '+%0A%3C%2Fbody%3E+%0A%3C%2Fhtml%3E'
   20    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.25 ms | 1465 KiB | 16 Q