3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ids = array(1,2,3,7,8,9); foreach($ids as &$val) $val=quote($val); //iterate through array and quote $in = implode(',',$ids); //create comma separated list echo $in; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 8
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/3R4dp
function name:  (null)
number of ops:  16
compiled vars:  !0 = $ids, !1 = $val, !2 = $in
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_RW                                      $4      !0, ->8
          2    > > FE_FETCH_RW                                              $4, !1, ->8
    5     3    >   INIT_FCALL_BY_NAME                                       'quote'
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !1, $5
    4     7      > JMP                                                      ->2
          8    >   FE_FREE                                                  $4
    6     9        INIT_FCALL                                               'implode'
         10        SEND_VAL                                                 '%2C'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $7      
         13        ASSIGN                                                   !2, $7
    8    14        ECHO                                                     !2
    9    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.36 ms | 939 KiB | 16 Q