3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = array(12,22,333,555,1); $sql = "email IN (".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/jpbHL
function name:  (null)
number of ops:  14
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                                               'trim'
          2        INIT_FCALL                                               'str_repeat'
          3        SEND_VAL                                                 '%3F%2C'
          4        COUNT                                            ~3      !0
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        DO_ICALL                                         $5      
          9        CONCAT                                           ~6      'email+IN+%28', $5
         10        CONCAT                                           ~7      ~6, '%29'
         11        ASSIGN                                                   !1, ~7
    7    12        ECHO                                                     !1
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.1 ms | 1394 KiB | 17 Q