3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = ""; $password = ""; $hostname = "192.168.1.10"; $db = mysql_connect($hostname, $username, $password,"") 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/eYdPW
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'
    6     3        INIT_FCALL_BY_NAME                                       'mysql_connect'
          4        SEND_VAR_EX                                              !2
          5        SEND_VAR_EX                                              !0
          6        SEND_VAR_EX                                              !1
          7        SEND_VAL_EX                                              ''
          8        DO_FCALL                                      0  $9      
          9        ASSIGN                                           ~10     !3, $9
         10      > JMPNZ_EX                                         ~10     ~10, ->13
    7    11    > > EXIT                                                     'Unable+to+connect+to+MySQL'
         12*       BOOL                                             ~10     <true>
    9    13    >   INIT_METHOD_CALL                                         !3, 'query'
         14        SEND_VAL_EX                                              'SELECT+%2A+FROM+%60users%60'
         15        DO_FCALL                                      0  $11     
         16        ASSIGN                                                   !4, $11
   10    17      > JMP                                                      ->20
   11    18    >   FETCH_DIM_R                                      ~13     !5, 'id'
         19        ECHO                                                     ~13
   10    20    >   INIT_METHOD_CALL                                         !4, 'fetch_assoc'
         21        DO_FCALL                                      0  $14     
         22        ASSIGN                                           ~15     !5, $14
         23      > JMPNZ                                                    ~15, ->18
   14    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.07 ms | 1395 KiB | 13 Q