3v4l.org

run code in 300+ PHP versions simultaneously
<?php if($user == "" || $pass == "") { echo "Please fill in all the information!"; } //Check to see if the username AND password MATCHES the username AND password in the DB else { $query = mysqli_query($con,"SELECT * FROM members WHERE username = '$user' and password = '$pass'") or die("Can not query DB."); $count = mysqli_num_rows($query); if ($count == 1) { $_SESSION['username']=$user; //Create a session for the user! header ("location: members.php"); } else{ echo "Username and Password DO NOT MATCH! TRY AGAIN!"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 2, Position 2 = 4
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 47) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 33
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/AtEjZ
function name:  (null)
number of ops:  35
compiled vars:  !0 = $user, !1 = $pass, !2 = $query, !3 = $con, !4 = $count
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   IS_EQUAL                                         ~5      !0, ''
          1      > JMPNZ_EX                                         ~5      ~5, ->4
          2    >   IS_EQUAL                                         ~6      !1, ''
          3        BOOL                                             ~5      ~6
          4    > > JMPZ                                                     ~5, ->7
    4     5    >   ECHO                                                     'Please+fill+in+all+the+information%21'
          6      > JMP                                                      ->34
   10     7    >   INIT_FCALL_BY_NAME                                       'mysqli_query'
          8        SEND_VAR_EX                                              !3
          9        ROPE_INIT                                     5  ~8      'SELECT+%2A+FROM+members+WHERE+username+%3D+%27'
         10        ROPE_ADD                                      1  ~8      ~8, !0
         11        ROPE_ADD                                      2  ~8      ~8, '%27+and+password+%3D+%27'
         12        ROPE_ADD                                      3  ~8      ~8, !1
         13        ROPE_END                                      4  ~7      ~8, '%27'
         14        SEND_VAL_EX                                              ~7
         15        DO_FCALL                                      0  $11     
         16        ASSIGN                                           ~12     !2, $11
         17      > JMPNZ_EX                                         ~12     ~12, ->20
         18    > > EXIT                                                     'Can+not+query+DB.'
         19*       BOOL                                             ~12     <true>
   11    20    >   INIT_FCALL_BY_NAME                                       'mysqli_num_rows'
         21        SEND_VAR_EX                                              !2
         22        DO_FCALL                                      0  $13     
         23        ASSIGN                                                   !4, $13
   13    24        IS_EQUAL                                                 !4, 1
         25      > JMPZ                                                     ~15, ->33
   15    26    >   FETCH_W                      global              $16     '_SESSION'
         27        ASSIGN_DIM                                               $16, 'username'
         28        OP_DATA                                                  !0
   16    29        INIT_FCALL                                               'header'
         30        SEND_VAL                                                 'location%3A+members.php'
         31        DO_ICALL                                                 
         32      > JMP                                                      ->34
   20    33    >   ECHO                                                     'Username+and+Password+DO+NOT+MATCH%21+TRY+AGAIN%21'
   22    34    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
200.58 ms | 1405 KiB | 15 Q