3v4l.org

run code in 300+ PHP versions simultaneously
<?php /*2014 JMH*/ header('Cache-Control: no-cache, must-revalidate'); header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); header('Content-type: application/json;charset=utf-8'); define("HOST","localhost"); define("USER","root"); define("PASSWORD","200lbq42lI"); define("DB","gts"); $con = new mysqli(HOST,USER,PASSWORD,DB); $con->set_charset("utf8"); if (!$con) { die('Could not connect: ' . mysqli_error()); } $sql= "SELECT Account.accountID , User.accountID, Account.password, User.userID, User.password from Account, User WHERE Account.accountID ='basic' AND User.accountID='basic' AND Account.password ='basic123' AND User.userID= ? AND User.password= ?"; $stmt = $con->prepare($sql); $stmt->bind_param('ss',$_POST['bruker'], $_POST['password'] ); $stmt->execute(); $stmt->store_result(); $numrows = $stmt->num_rows; if($numrows >0) { echo 'true'; } else { echo 'false'; } $con->close(); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 41, Position 2 = 45
Branch analysis from position: 41
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 45
2 jumps found. (Code = 43) Position 1 = 69, Position 2 = 71
Branch analysis from position: 69
1 jumps found. (Code = 42) Position 1 = 72
Branch analysis from position: 72
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 71
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FE77v
function name:  (null)
number of ops:  75
compiled vars:  !0 = $con, !1 = $sql, !2 = $stmt, !3 = $numrows
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Cache-Control%3A+no-cache%2C+must-revalidate'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'header'
          4        SEND_VAL                                                 'Expires%3A+Mon%2C+26+Jul+1997+05%3A00%3A00+GMT'
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'header'
          7        SEND_VAL                                                 'Content-type%3A+application%2Fjson%3Bcharset%3Dutf-8'
          8        DO_ICALL                                                 
    7     9        INIT_FCALL                                               'define'
         10        SEND_VAL                                                 'HOST'
         11        SEND_VAL                                                 'localhost'
         12        DO_ICALL                                                 
    8    13        INIT_FCALL                                               'define'
         14        SEND_VAL                                                 'USER'
         15        SEND_VAL                                                 'root'
         16        DO_ICALL                                                 
    9    17        INIT_FCALL                                               'define'
         18        SEND_VAL                                                 'PASSWORD'
         19        SEND_VAL                                                 '200lbq42lI'
         20        DO_ICALL                                                 
   10    21        INIT_FCALL                                               'define'
         22        SEND_VAL                                                 'DB'
         23        SEND_VAL                                                 'gts'
         24        DO_ICALL                                                 
   12    25        NEW                                              $11     'mysqli'
         26        FETCH_CONSTANT                                   ~12     'HOST'
         27        SEND_VAL_EX                                              ~12
         28        FETCH_CONSTANT                                   ~13     'USER'
         29        SEND_VAL_EX                                              ~13
         30        FETCH_CONSTANT                                   ~14     'PASSWORD'
         31        SEND_VAL_EX                                              ~14
         32        FETCH_CONSTANT                                   ~15     'DB'
         33        SEND_VAL_EX                                              ~15
         34        DO_FCALL                                      0          
         35        ASSIGN                                                   !0, $11
   13    36        INIT_METHOD_CALL                                         !0, 'set_charset'
         37        SEND_VAL_EX                                              'utf8'
         38        DO_FCALL                                      0          
   15    39        BOOL_NOT                                         ~19     !0
         40      > JMPZ                                                     ~19, ->45
   17    41    >   INIT_FCALL_BY_NAME                                       'mysqli_error'
         42        DO_FCALL                                      0  $20     
         43        CONCAT                                           ~21     'Could+not+connect%3A+', $20
         44      > EXIT                                                     ~21
   19    45    >   ASSIGN                                                   !1, 'SELECT+Account.accountID+%2C+User.accountID%2C+Account.password%2C+User.userID%2C+User.password+from+Account%2C+User+WHERE+Account.accountID+%3D%27basic%27+AND+User.accountID%3D%27basic%27+AND+Account.password+%3D%27basic123%27++%0AAND+User.userID%3D+%3F+AND+User.password%3D+%3F'
   22    46        INIT_METHOD_CALL                                         !0, 'prepare'
         47        SEND_VAR_EX                                              !1
         48        DO_FCALL                                      0  $23     
         49        ASSIGN                                                   !2, $23
   23    50        INIT_METHOD_CALL                                         !2, 'bind_param'
         51        SEND_VAL_EX                                              'ss'
         52        CHECK_FUNC_ARG                                           
         53        FETCH_FUNC_ARG               global              $25     '_POST'
         54        FETCH_DIM_FUNC_ARG                               $26     $25, 'bruker'
         55        SEND_FUNC_ARG                                            $26
         56        CHECK_FUNC_ARG                                           
         57        FETCH_FUNC_ARG               global              $27     '_POST'
         58        FETCH_DIM_FUNC_ARG                               $28     $27, 'password'
         59        SEND_FUNC_ARG                                            $28
         60        DO_FCALL                                      0          
   24    61        INIT_METHOD_CALL                                         !2, 'execute'
         62        DO_FCALL                                      0          
   25    63        INIT_METHOD_CALL                                         !2, 'store_result'
         64        DO_FCALL                                      0          
   26    65        FETCH_OBJ_R                                      ~32     !2, 'num_rows'
         66        ASSIGN                                                   !3, ~32
   28    67        IS_SMALLER                                               0, !3
         68      > JMPZ                                                     ~34, ->71
   30    69    >   ECHO                                                     'true'
         70      > JMP                                                      ->72
   34    71    >   ECHO                                                     'false'
   37    72    >   INIT_METHOD_CALL                                         !0, 'close'
         73        DO_FCALL                                      0          
   38    74      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.59 ms | 1405 KiB | 17 Q