3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dev_id = 1; $sop = array('1', '2', '3'); $insert_sop = ""; $it_sop = new ArrayIterator($sop); $c_sop = new CachingIterator($it_sop); foreach($c_sop as $ind_sop) { $insert_sop .= "($ind_sop, $dev_id)"; if ($c_sop->hasNext()) { $insert_sop .= ", "; } } echo $insert_rp; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 24
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 24
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 23
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 23
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/NZngl
function name:  (null)
number of ops:  27
compiled vars:  !0 = $dev_id, !1 = $sop, !2 = $insert_sop, !3 = $it_sop, !4 = $c_sop, !5 = $ind_sop, !6 = $insert_rp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        ASSIGN                                                   !1, <array>
    4     2        ASSIGN                                                   !2, ''
    5     3        NEW                                              $10     'ArrayIterator'
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !3, $10
    6     7        NEW                                              $13     'CachingIterator'
          8        SEND_VAR_EX                                              !3
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !4, $13
    8    11      > FE_RESET_R                                       $16     !4, ->24
         12    > > FE_FETCH_R                                               $16, !5, ->24
    9    13    >   ROPE_INIT                                     5  ~18     '%28'
         14        ROPE_ADD                                      1  ~18     ~18, !5
         15        ROPE_ADD                                      2  ~18     ~18, '%2C+'
         16        ROPE_ADD                                      3  ~18     ~18, !0
         17        ROPE_END                                      4  ~17     ~18, '%29'
         18        ASSIGN_OP                                     8          !2, ~17
   10    19        INIT_METHOD_CALL                                         !4, 'hasNext'
         20        DO_FCALL                                      0  $22     
         21      > JMPZ                                                     $22, ->23
   11    22    >   ASSIGN_OP                                     8          !2, '%2C+'
    8    23    > > JMP                                                      ->12
         24    >   FE_FREE                                                  $16
   15    25        ECHO                                                     !6
   16    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.91 ms | 1395 KiB | 13 Q