3v4l.org

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

Class FooIterator:
Function accept:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T3II6
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.0.0


preferences:
151.75 ms | 1393 KiB | 13 Q