3v4l.org

run code in 500+ PHP versions simultaneously
<?php class FooIterator extends FilterIterator { public function accept() { return true; } } $iterator = new FooIterator(new ArrayIterator(array(1))); echo $iterator->count();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7FYk4
function name:  (null)
number of ops:  11
compiled vars:  !0 = $iterator
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   NEW                                                  $1      'FooIterator'
          1        NEW                                                  $2      'ArrayIterator'
          2        SEND_VAL_EX                                                  <array>
          3        DO_FCALL                                          0          
          4        SEND_VAR_NO_REF_EX                                           $2
          5        DO_FCALL                                          0          
          6        ASSIGN                                                       !0, $1
    8     7        INIT_METHOD_CALL                                             !0, 'count'
          8        DO_FCALL                                          0  $6      
          9        ECHO                                                         $6
         10      > RETURN                                                       1

Class FooIterator:
Function accept:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7FYk4
function name:  accept
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                       <true>
    5     1*     > RETURN                                                       null

End of function accept

End of class FooIterator.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
205.18 ms | 3288 KiB | 13 Q