3v4l.org

run code in 300+ PHP versions simultaneously
<?php $con=mysqli_connect("localhost8080","a3876682_kami","Kawasakizx10r","a3876682_tonikam") or die(mysql_error()); $username = $_POST["username"]; $password = $_POST["password"]; $statement = mysqli_prepare($con, "SELECT * FROM User WHERE username = ? AND password = ?"); mysqli_stmt_bind_param($statement, "ss", $username, $password); mysqli_stmt_execute($statement); mysqli_stmt_store_result($statement); mysqli_stmt_bind_result($statement, $userID, $name, $age, $username, $password); //$user = array(); while($user=mysqli_stmt_fetch($statement)){ $user["name"] = $name; $user["age"] = $age; $user["username"] = $username; $user["password"] = $password; } echo json_encode($user); mysqli_close($con); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 52
Branch analysis from position: 52
2 jumps found. (Code = 44) Position 1 = 57, Position 2 = 44
Branch analysis from position: 57
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 44
2 jumps found. (Code = 44) Position 1 = 57, Position 2 = 44
Branch analysis from position: 57
Branch analysis from position: 44
filename:       /in/eeS45
function name:  (null)
number of ops:  65
compiled vars:  !0 = $con, !1 = $username, !2 = $password, !3 = $statement, !4 = $userID, !5 = $name, !6 = $age, !7 = $user
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'mysqli_connect'
          1        SEND_VAL_EX                                              'localhost8080'
          2        SEND_VAL_EX                                              'a3876682_kami'
          3        SEND_VAL_EX                                              'Kawasakizx10r'
          4        SEND_VAL_EX                                              'a3876682_tonikam'
          5        DO_FCALL                                      0  $8      
          6        ASSIGN                                           ~9      !0, $8
          7      > JMPNZ_EX                                         ~9      ~9, ->12
          8    >   INIT_FCALL_BY_NAME                                       'mysql_error'
          9        DO_FCALL                                      0  $10     
         10      > EXIT                                                     $10
         11*       BOOL                                             ~9      <true>
    4    12    >   FETCH_R                      global              ~11     '_POST'
         13        FETCH_DIM_R                                      ~12     ~11, 'username'
         14        ASSIGN                                                   !1, ~12
    5    15        FETCH_R                      global              ~14     '_POST'
         16        FETCH_DIM_R                                      ~15     ~14, 'password'
         17        ASSIGN                                                   !2, ~15
    7    18        INIT_FCALL_BY_NAME                                       'mysqli_prepare'
         19        SEND_VAR_EX                                              !0
         20        SEND_VAL_EX                                              'SELECT+%2A+FROM+User+WHERE+username+%3D+%3F+AND+password+%3D+%3F'
         21        DO_FCALL                                      0  $17     
         22        ASSIGN                                                   !3, $17
    8    23        INIT_FCALL_BY_NAME                                       'mysqli_stmt_bind_param'
         24        SEND_VAR_EX                                              !3
         25        SEND_VAL_EX                                              'ss'
         26        SEND_VAR_EX                                              !1
         27        SEND_VAR_EX                                              !2
         28        DO_FCALL                                      0          
    9    29        INIT_FCALL_BY_NAME                                       'mysqli_stmt_execute'
         30        SEND_VAR_EX                                              !3
         31        DO_FCALL                                      0          
   11    32        INIT_FCALL_BY_NAME                                       'mysqli_stmt_store_result'
         33        SEND_VAR_EX                                              !3
         34        DO_FCALL                                      0          
   12    35        INIT_FCALL_BY_NAME                                       'mysqli_stmt_bind_result'
         36        SEND_VAR_EX                                              !3
         37        SEND_VAR_EX                                              !4
         38        SEND_VAR_EX                                              !5
         39        SEND_VAR_EX                                              !6
         40        SEND_VAR_EX                                              !1
         41        SEND_VAR_EX                                              !2
         42        DO_FCALL                                      0          
   16    43      > JMP                                                      ->52
   17    44    >   ASSIGN_DIM                                               !7, 'name'
         45        OP_DATA                                                  !5
   18    46        ASSIGN_DIM                                               !7, 'age'
         47        OP_DATA                                                  !6
   19    48        ASSIGN_DIM                                               !7, 'username'
         49        OP_DATA                                                  !1
   20    50        ASSIGN_DIM                                               !7, 'password'
         51        OP_DATA                                                  !2
   16    52    >   INIT_FCALL_BY_NAME                                       'mysqli_stmt_fetch'
         53        SEND_VAR_EX                                              !3
         54        DO_FCALL                                      0  $27     
         55        ASSIGN                                           ~28     !7, $27
         56      > JMPNZ                                                    ~28, ->44
   23    57    >   INIT_FCALL                                               'json_encode'
         58        SEND_VAR                                                 !7
         59        DO_ICALL                                         $29     
         60        ECHO                                                     $29
   24    61        INIT_FCALL_BY_NAME                                       'mysqli_close'
         62        SEND_VAR_EX                                              !0
         63        DO_FCALL                                      0          
   25    64      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.18 ms | 1400 KiB | 15 Q