3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ids = [0, 1,2, 3]; var_dump(str_repeat('?, ', count($ids))); $sql = ''; foreach ($ids as $id) { $sql .= '?, '; } var_dump($sql);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/OqIkv
function name:  (null)
number of ops:  19
compiled vars:  !0 = $ids, !1 = $sql, !2 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'str_repeat'
          3        SEND_VAL                                                 '%3F%2C+'
          4        COUNT                                            ~4      !0
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                         $5      
          7        SEND_VAR                                                 $5
          8        DO_ICALL                                                 
    7     9        ASSIGN                                                   !1, ''
    9    10      > FE_RESET_R                                       $8      !0, ->14
         11    > > FE_FETCH_R                                               $8, !2, ->14
   10    12    >   ASSIGN_OP                                     8          !1, '%3F%2C+'
    9    13      > JMP                                                      ->11
         14    >   FE_FREE                                                  $8
   13    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.63 ms | 1395 KiB | 17 Q