3v4l.org

run code in 300+ PHP versions simultaneously
<?php $qw = "Select * from table "; $list = Array('satte','dfgsdfgdsg','grgs3'); $list = implode("','", $list); $qw .= sprintf(" WHERE subscription_id IN ('%s') ", $list); echo $qw;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SEl0C
function name:  (null)
number of ops:  14
compiled vars:  !0 = $qw, !1 = $list
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Select+%2A+from+table+'
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'implode'
          3        SEND_VAL                                                 '%27%2C%27'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    7     7        INIT_FCALL                                               'sprintf'
          8        SEND_VAL                                                 '+WHERE+subscription_id+IN+%28%27%25s%27%29+'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $6      
         11        ASSIGN_OP                                     8          !0, $6
    9    12        ECHO                                                     !0
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.77 ms | 1398 KiB | 17 Q