3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.55 ms | 1399 KiB | 19 Q