3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sql = 'SELECT * FROM table WHERE ID IN ('; $arr = array_fill(0, 1000, '?'); $sql .= implode(',', $arr); $sql .= ');'; var_dump($sql);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vZ3St
function name:  (null)
number of ops:  17
compiled vars:  !0 = $sql, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'SELECT+%2A+FROM+table+WHERE+ID+IN+%28'
    5     1        INIT_FCALL                                               'array_fill'
          2        SEND_VAL                                                 0
          3        SEND_VAL                                                 1000
          4        SEND_VAL                                                 '%3F'
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    6     7        INIT_FCALL                                               'implode'
          8        SEND_VAL                                                 '%2C'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $5      
         11        ASSIGN_OP                                     8          !0, $5
    7    12        ASSIGN_OP                                     8          !0, '%29%3B'
    8    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.8 ms | 1394 KiB | 19 Q