3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.57 ms | 1393 KiB | 13 Q