3v4l.org

run code in 300+ PHP versions simultaneously
<?php $con=mysqli_connect("localhost8080","a3876682_kami","Kawasakizx10r","a3876682_tonikam"); echo mysqli_connect_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(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
1 jumps found. (Code = 42) Position 1 = 51
Branch analysis from position: 51
2 jumps found. (Code = 44) Position 1 = 55, Position 2 = 43
Branch analysis from position: 55
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 43
2 jumps found. (Code = 44) Position 1 = 55, Position 2 = 43
Branch analysis from position: 55
Branch analysis from position: 43
filename:       /in/qI9X4
function name:  (null)
number of ops:  63
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                                                   !0, $8
    3     7        INIT_FCALL_BY_NAME                                       'mysqli_connect_error'
          8        DO_FCALL                                      0  $10     
          9        ECHO                                                     $10
    5    10        FETCH_R                      global              ~11     '_POST'
         11        FETCH_DIM_R                                      ~12     ~11, 'username'
         12        ASSIGN                                                   !1, ~12
    6    13        FETCH_R                      global              ~14     '_POST'
         14        FETCH_DIM_R                                      ~15     ~14, 'password'
         15        ASSIGN                                                   !2, ~15
    8    16        INIT_FCALL_BY_NAME                                       'mysqli_prepare'
         17        SEND_VAR_EX                                              !0
         18        SEND_VAL_EX                                              'SELECT+%2A+FROM+User+WHERE+username+%3D+%3F+AND+password+%3D+%3F'
         19        DO_FCALL                                      0  $17     
         20        ASSIGN                                                   !3, $17
    9    21        INIT_FCALL_BY_NAME                                       'mysqli_stmt_bind_param'
         22        SEND_VAR_EX                                              !3
         23        SEND_VAL_EX                                              'ss'
         24        SEND_VAR_EX                                              !1
         25        SEND_VAR_EX                                              !2
         26        DO_FCALL                                      0          
   10    27        INIT_FCALL_BY_NAME                                       'mysqli_stmt_execute'
         28        SEND_VAR_EX                                              !3
         29        DO_FCALL                                      0          
   12    30        INIT_FCALL_BY_NAME                                       'mysqli_stmt_store_result'
         31        SEND_VAR_EX                                              !3
         32        DO_FCALL                                      0          
   13    33        INIT_FCALL_BY_NAME                                       'mysqli_stmt_bind_result'
         34        SEND_VAR_EX                                              !3
         35        SEND_VAR_EX                                              !4
         36        SEND_VAR_EX                                              !5
         37        SEND_VAR_EX                                              !6
         38        SEND_VAR_EX                                              !1
         39        SEND_VAR_EX                                              !2
         40        DO_FCALL                                      0          
   15    41        ASSIGN                                                   !7, <array>
   17    42      > JMP                                                      ->51
   18    43    >   ASSIGN_DIM                                               !7, 'name'
         44        OP_DATA                                                  !5
   19    45        ASSIGN_DIM                                               !7, 'age'
         46        OP_DATA                                                  !6
   20    47        ASSIGN_DIM                                               !7, 'username'
         48        OP_DATA                                                  !1
   21    49        ASSIGN_DIM                                               !7, 'password'
         50        OP_DATA                                                  !2
   17    51    >   INIT_FCALL_BY_NAME                                       'mysqli_stmt_fetch'
         52        SEND_VAR_EX                                              !3
         53        DO_FCALL                                      0  $28     
         54      > JMPNZ                                                    $28, ->43
   24    55    >   INIT_FCALL                                               'json_encode'
         56        SEND_VAR                                                 !7
         57        DO_ICALL                                         $29     
         58        ECHO                                                     $29
   25    59        INIT_FCALL_BY_NAME                                       'mysqli_close'
         60        SEND_VAR_EX                                              !0
         61        DO_FCALL                                      0          
   26    62      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.38 ms | 948 KiB | 17 Q