3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = ""; $password = ""; $hostname = "192.168.1.10/test"; $db = new mysqli($hostname, $username, $password,"test") or die("Unable to connect to MySQL"); $result = $db->query("SELECT * FROM `users`"); while($row = $result->fetch_assoc()) { echo $row['id']; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 18
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 18
Branch analysis from position: 24
Branch analysis from position: 18
filename:       /in/TDHIc
function name:  (null)
number of ops:  25
compiled vars:  !0 = $username, !1 = $password, !2 = $hostname, !3 = $db, !4 = $result, !5 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, ''
    4     1        ASSIGN                                                   !1, ''
    5     2        ASSIGN                                                   !2, '192.168.1.10%2Ftest'
    6     3        NEW                                              $9      'mysqli'
          4        SEND_VAR_EX                                              !2
          5        SEND_VAR_EX                                              !0
          6        SEND_VAR_EX                                              !1
          7        SEND_VAL_EX                                              'test'
          8        DO_FCALL                                      0          
          9        ASSIGN                                           ~11     !3, $9
         10      > JMPNZ_EX                                         ~11     ~11, ->13
    7    11    > > EXIT                                                     'Unable+to+connect+to+MySQL'
         12*       BOOL                                             ~11     <true>
    9    13    >   INIT_METHOD_CALL                                         !3, 'query'
         14        SEND_VAL_EX                                              'SELECT+%2A+FROM+%60users%60'
         15        DO_FCALL                                      0  $12     
         16        ASSIGN                                                   !4, $12
   10    17      > JMP                                                      ->20
   11    18    >   FETCH_DIM_R                                      ~14     !5, 'id'
         19        ECHO                                                     ~14
   10    20    >   INIT_METHOD_CALL                                         !4, 'fetch_assoc'
         21        DO_FCALL                                      0  $15     
         22        ASSIGN                                           ~16     !5, $15
         23      > JMPNZ                                                    ~16, ->18
   14    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.84 ms | 1395 KiB | 13 Q