3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array(); $it = new ArrayIterator($arr); $arr[] = 0; foreach($it as $v) { echo $v;}
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/mTOuG
function name:  (null)
number of ops:  13
compiled vars:  !0 = $arr, !1 = $it, !2 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        NEW                                              $4      'ArrayIterator'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !1, $4
    5     5        ASSIGN_DIM                                               !0
          6        OP_DATA                                                  0
    6     7      > FE_RESET_R                                       $8      !1, ->11
          8    > > FE_FETCH_R                                               $8, !2, ->11
    7     9    >   ECHO                                                     !2
    6    10      > JMP                                                      ->8
         11    >   FE_FREE                                                  $8
    7    12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.57 ms | 1393 KiB | 13 Q