3v4l.org

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

Class IteratorIteratorEx:
Function rewind:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6EK3M
function name:  rewind
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ECHO                                                     'IteratorIteratorEx%3A%3Arewind%0A'
    5     1        INIT_STATIC_METHOD_CALL                                  'IteratorIterator', 'rewind'
          2        DO_FCALL                                      0          
    6     3      > RETURN                                                   null

End of function rewind

End of class IteratorIteratorEx.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.32 ms | 1395 KiB | 15 Q