3v4l.org

run code in 300+ PHP versions simultaneously
<?php $query="select country,admin1,admin2,admin3,admin4 from geoname where geonameid=$id"; $result=$mysqli->query($query); $groups=array(); if(!$result) { die('something wrong with database> ' . $mysqli->error); } $row = $result->fetch_object(); $sql=''; for($i=1;$i<$lvl;$i++) { $admin='admin'.$i; $sql.=$admin.'='.$row->$admin; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 19
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 19
Branch analysis from position: 28
Branch analysis from position: 19
filename:       /in/jE9tG
function name:  (null)
number of ops:  29
compiled vars:  !0 = $query, !1 = $id, !2 = $result, !3 = $mysqli, !4 = $groups, !5 = $row, !6 = $sql, !7 = $i, !8 = $admin, !9 = $lvl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NOP                                                      
          1        FAST_CONCAT                                      ~10     'select+country%2Cadmin1%2Cadmin2%2Cadmin3%2Cadmin4+from+geoname+where+geonameid%3D', !1
          2        ASSIGN                                                   !0, ~10
    3     3        INIT_METHOD_CALL                                         !3, 'query'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $12     
          6        ASSIGN                                                   !2, $12
    4     7        ASSIGN                                                   !4, <array>
    6     8        BOOL_NOT                                         ~15     !2
          9      > JMPZ                                                     ~15, ->13
    8    10    >   FETCH_OBJ_R                                      ~16     !3, 'error'
         11        CONCAT                                           ~17     'something+wrong+with+database%3E+', ~16
         12      > EXIT                                                     ~17
   10    13    >   INIT_METHOD_CALL                                         !2, 'fetch_object'
         14        DO_FCALL                                      0  $18     
         15        ASSIGN                                                   !5, $18
   12    16        ASSIGN                                                   !6, ''
   13    17        ASSIGN                                                   !7, 1
         18      > JMP                                                      ->26
   15    19    >   CONCAT                                           ~22     'admin', !7
         20        ASSIGN                                                   !8, ~22
   16    21        CONCAT                                           ~24     !8, '%3D'
         22        FETCH_OBJ_R                                      ~25     !5, !8
         23        CONCAT                                           ~26     ~24, ~25
         24        ASSIGN_OP                                     8          !6, ~26
   13    25        PRE_INC                                                  !7
         26    >   IS_SMALLER                                               !7, !9
         27      > JMPNZ                                                    ~29, ->19
   17    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
209.01 ms | 1395 KiB | 13 Q