3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dev_id = 1; $insert_rp = ""; $personnel = array('Josh Haywood', 'Josh Cubbison', 'Brian Kang'); $it_personnel = new ArrayIterator($personnel); $c_personnel = new CachingIterator($it_personnel); foreach($c_personnel as $pers) { $insert_rp .= "($pers, $dev_id)"; if ($c_personnel->hasNext()) { $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/IS4e3
function name:  (null)
number of ops:  26
compiled vars:  !0 = $dev_id, !1 = $insert_rp, !2 = $personnel, !3 = $it_personnel, !4 = $c_personnel, !5 = $pers
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        ASSIGN                                                   !1, ''
    4     2        ASSIGN                                                   !2, <array>
    5     3        NEW                                              $9      'ArrayIterator'
          4        SEND_VAR_EX                                              !2
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !3, $9
    6     7        NEW                                              $12     'CachingIterator'
          8        SEND_VAR_EX                                              !3
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !4, $12
    8    11      > FE_RESET_R                                       $15     !4, ->24
         12    > > FE_FETCH_R                                               $15, !5, ->24
    9    13    >   ROPE_INIT                                     5  ~17     '%28'
         14        ROPE_ADD                                      1  ~17     ~17, !5
         15        ROPE_ADD                                      2  ~17     ~17, '%2C+'
         16        ROPE_ADD                                      3  ~17     ~17, !0
         17        ROPE_END                                      4  ~16     ~17, '%29'
         18        ASSIGN_OP                                     8          !1, ~16
   10    19        INIT_METHOD_CALL                                         !4, 'hasNext'
         20        DO_FCALL                                      0  $21     
         21      > JMPZ                                                     $21, ->23
   11    22    >   ASSIGN_OP                                     8          !1, '%2C'
    8    23    > > JMP                                                      ->12
         24    >   FE_FREE                                                  $15
   14    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.38 ms | 1395 KiB | 13 Q