3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_REQUEST['token_pre_pop'] = true; $_REQUEST['ids'] = '1000';//,1002,1004'; if (isset($_REQUEST['token_pre_pop'])) { $ids = $_REQUEST['ids']; $ids = explode(",", urldecode($ids)); if (!is_array($ids)) { $ids = "'".implode("','", $ids)."'"; //$query = "SELECT `username` FROM `logins`.`users` WHERE `id` IN ($ids)"; //$result = $db->query($query) or die(bad_query_emailer($db->error,"File: ".__FILE__." Line: ".__LINE__,"There was a database error. This is being investigated.")); //$name = $result->fetch_assoc(); //echo '{"'.$name.'"}'; // JSONed //echo $ids; } else { //$query = "SELECT `username` FROM `logins`.`users` WHERE `id` = '%s'"; //$result = $db->query($query, $ids) or die(bad_query_emailer($db->error,"File: ".__FILE__." Line: ".__LINE__,"There was a database error. This is being investigated.")); //$names = array(); //while ($row = $result->fetch_assoc()) { // $names[] = $row['username']; //} //echo json_encode($names); $ids = json_encode($ids); echo $ids; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 36
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 31
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 36
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
filename:       /in/aKf9J
function name:  (null)
number of ops:  37
compiled vars:  !0 = $ids
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_W                      global              $1      '_REQUEST'
          1        ASSIGN_DIM                                               $1, 'token_pre_pop'
          2        OP_DATA                                                  <true>
    4     3        FETCH_W                      global              $3      '_REQUEST'
          4        ASSIGN_DIM                                               $3, 'ids'
          5        OP_DATA                                                  '1000'
    5     6        FETCH_IS                                         ~5      '_REQUEST'
          7        ISSET_ISEMPTY_DIM_OBJ                         0          ~5, 'token_pre_pop'
          8      > JMPZ                                                     ~6, ->36
    7     9    >   FETCH_R                      global              ~7      '_REQUEST'
         10        FETCH_DIM_R                                      ~8      ~7, 'ids'
         11        ASSIGN                                                   !0, ~8
    8    12        INIT_FCALL                                               'explode'
         13        SEND_VAL                                                 '%2C'
         14        INIT_FCALL                                               'urldecode'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $10     
         17        SEND_VAR                                                 $10
         18        DO_ICALL                                         $11     
         19        ASSIGN                                                   !0, $11
   10    20        TYPE_CHECK                                  128  ~13     !0
         21        BOOL_NOT                                         ~14     ~13
         22      > JMPZ                                                     ~14, ->31
   11    23    >   INIT_FCALL                                               'implode'
         24        SEND_VAL                                                 '%27%2C%27'
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                         $15     
         27        CONCAT                                           ~16     '%27', $15
         28        CONCAT                                           ~17     ~16, '%27'
         29        ASSIGN                                                   !0, ~17
         30      > JMP                                                      ->36
   25    31    >   INIT_FCALL                                               'json_encode'
         32        SEND_VAR                                                 !0
         33        DO_ICALL                                         $19     
         34        ASSIGN                                                   !0, $19
   26    35        ECHO                                                     !0
   28    36    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
191.04 ms | 1396 KiB | 21 Q