3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.69 ms | 1394 KiB | 19 Q