3v4l.org

run code in 300+ PHP versions simultaneously
<?php $host= '185.30.146.120'; $username = 'arenssql1'; $pwd= 'Arensi'; $db='arenssql1'; $con=mysqli_connect($host,$username,$pwd,$db) or die('Unable to connect'); if(mysqli_connect_error($con)) { echo "Failed to connect"; } $query=mysqli_query($con, "SELECT * FROM news"); if($query) { while($row-mysqli_fetch_array($query)) { $flag[] =$row; } print(json_encode($flag)); } mysqli_close(con); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 19
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 37
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 26
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 26
Branch analysis from position: 33
Branch analysis from position: 26
Branch analysis from position: 37
Branch analysis from position: 19
filename:       /in/LTOEO
function name:  (null)
number of ops:  42
compiled vars:  !0 = $host, !1 = $username, !2 = $pwd, !3 = $db, !4 = $con, !5 = $query, !6 = $flag, !7 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '185.30.146.120'
    3     1        ASSIGN                                                   !1, 'arenssql1'
    4     2        ASSIGN                                                   !2, 'Arensi'
    5     3        ASSIGN                                                   !3, 'arenssql1'
    8     4        INIT_FCALL_BY_NAME                                       'mysqli_connect'
          5        SEND_VAR_EX                                              !0
          6        SEND_VAR_EX                                              !1
          7        SEND_VAR_EX                                              !2
          8        SEND_VAR_EX                                              !3
          9        DO_FCALL                                      0  $12     
         10        ASSIGN                                           ~13     !4, $12
         11      > JMPNZ_EX                                         ~13     ~13, ->14
         12    > > EXIT                                                     'Unable+to+connect'
         13*       BOOL                                             ~13     <true>
   10    14    >   INIT_FCALL_BY_NAME                                       'mysqli_connect_error'
         15        SEND_VAR_EX                                              !4
         16        DO_FCALL                                      0  $14     
         17      > JMPZ                                                     $14, ->19
   12    18    >   ECHO                                                     'Failed+to+connect'
   15    19    >   INIT_FCALL_BY_NAME                                       'mysqli_query'
         20        SEND_VAR_EX                                              !4
         21        SEND_VAL_EX                                              'SELECT+%2A+FROM+news'
         22        DO_FCALL                                      0  $15     
         23        ASSIGN                                                   !5, $15
   17    24      > JMPZ                                                     !5, ->37
   19    25    > > JMP                                                      ->28
   21    26    >   ASSIGN_DIM                                               !6
         27        OP_DATA                                                  !7
   19    28    >   INIT_FCALL_BY_NAME                                       'mysqli_fetch_array'
         29        SEND_VAR_EX                                              !5
         30        DO_FCALL                                      0  $18     
         31        SUB                                              ~19     !7, $18
         32      > JMPNZ                                                    ~19, ->26
   24    33    >   INIT_FCALL                                               'json_encode'
         34        SEND_VAR                                                 !6
         35        DO_ICALL                                         $20     
         36        ECHO                                                     $20
   27    37    >   INIT_FCALL_BY_NAME                                       'mysqli_close'
         38        FETCH_CONSTANT                                   ~21     'con'
         39        SEND_VAL_EX                                              ~21
         40        DO_FCALL                                      0          
   29    41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.99 ms | 1400 KiB | 15 Q