3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = "yonder"; $password = "simbioza"; $hostname = "www.db4free.net"; $link = mysqli_connect($hostname,$username,$password,"zombiezz") or die("Error " . mysqli_error($link)); echo "Connected to MySQL</br>"; $mysql_upit = "select * from zombiezz.users"; $promet = mysql_query($mysql_upit); if (!$promet) { echo ("error with query"); exit; } $num=mysql_numrows($promet); echo($num." zapisa"); while ($row = mysql_fetch_array($promet)) { $promenljiva1= $row['name']; echo $promenljiva1; } mysqli_close($link); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 34
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 42, Position 2 = 34
Branch analysis from position: 42
Branch analysis from position: 34
filename:       /in/gpIpW
function name:  (null)
number of ops:  46
compiled vars:  !0 = $username, !1 = $password, !2 = $hostname, !3 = $link, !4 = $mysql_upit, !5 = $promet, !6 = $num, !7 = $promenljiva1, !8 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'yonder'
    3     1        ASSIGN                                                   !1, 'simbioza'
    4     2        ASSIGN                                                   !2, 'www.db4free.net'
    6     3        INIT_FCALL_BY_NAME                                       'mysqli_connect'
          4        SEND_VAR_EX                                              !2
          5        SEND_VAR_EX                                              !0
          6        SEND_VAR_EX                                              !1
          7        SEND_VAL_EX                                              'zombiezz'
          8        DO_FCALL                                      0  $12     
          9        ASSIGN                                           ~13     !3, $12
         10      > JMPNZ_EX                                         ~13     ~13, ->17
         11    >   INIT_FCALL_BY_NAME                                       'mysqli_error'
         12        SEND_VAR_EX                                              !3
         13        DO_FCALL                                      0  $14     
         14        CONCAT                                           ~15     'Error+', $14
         15      > EXIT                                                     ~15
         16*       BOOL                                             ~13     <true>
    7    17    >   ECHO                                                     'Connected+to+MySQL%3C%2Fbr%3E'
    9    18        ASSIGN                                                   !4, 'select+%2A+from+zombiezz.users'
   11    19        INIT_FCALL_BY_NAME                                       'mysql_query'
         20        SEND_VAR_EX                                              !4
         21        DO_FCALL                                      0  $17     
         22        ASSIGN                                                   !5, $17
   12    23        BOOL_NOT                                         ~19     !5
         24      > JMPZ                                                     ~19, ->27
   13    25    >   ECHO                                                     'error+with+query'
         26      > EXIT                                                     
   16    27    >   INIT_FCALL_BY_NAME                                       'mysql_numrows'
         28        SEND_VAR_EX                                              !5
         29        DO_FCALL                                      0  $20     
         30        ASSIGN                                                   !6, $20
   17    31        CONCAT                                           ~22     !6, '+zapisa'
         32        ECHO                                                     ~22
   19    33      > JMP                                                      ->37
   21    34    >   FETCH_DIM_R                                      ~23     !8, 'name'
         35        ASSIGN                                                   !7, ~23
   22    36        ECHO                                                     !7
   19    37    >   INIT_FCALL_BY_NAME                                       'mysql_fetch_array'
         38        SEND_VAR_EX                                              !5
         39        DO_FCALL                                      0  $25     
         40        ASSIGN                                           ~26     !8, $25
         41      > JMPNZ                                                    ~26, ->34
   25    42    >   INIT_FCALL_BY_NAME                                       'mysqli_close'
         43        SEND_VAR_EX                                              !3
         44        DO_FCALL                                      0          
   26    45      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.01 ms | 1399 KiB | 13 Q