3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new ArrayObject(); for( $i=0; $i<100; $i++ ){ $a->$i = $i*100; } foreach($obj->getIterator() as $i){ echo $i; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 5
Branch analysis from position: 11
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 17
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 11, Position 2 = 5
Branch analysis from position: 11
Branch analysis from position: 5
filename:       /in/kvGLn
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $i, !2 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'ArrayObject'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    3     3        ASSIGN                                                   !1, 0
          4      > JMP                                                      ->9
    4     5    >   MUL                                              ~8      !1, 100
          6        ASSIGN_OBJ                                               !0, !1
          7        OP_DATA                                                  ~8
    3     8        PRE_INC                                                  !1
          9    >   IS_SMALLER                                               !1, 100
         10      > JMPNZ                                                    ~10, ->5
    6    11    >   INIT_METHOD_CALL                                         !2, 'getIterator'
         12        DO_FCALL                                      0  $11     
         13      > FE_RESET_R                                       $12     $11, ->17
         14    > > FE_FETCH_R                                               $12, !1, ->17
    7    15    >   ECHO                                                     !1
    6    16      > JMP                                                      ->14
         17    >   FE_FREE                                                  $12
    8    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.12 ms | 1398 KiB | 13 Q