3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.21 ms | 1386 KiB | 15 Q