3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface Foo extends \Traversable { } interface Baz { } class Example implements Foo, \IteratorAggregate, Baz { public function getIterator() { return new \ArrayIterator([]); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9VqNt
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                                'foo'
   11     1        DECLARE_CLASS                                                'example'
   17     2      > RETURN                                                       1

Class Foo: [no user functions]
Class Baz: [no user functions]
Class Example:
Function getiterator:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9VqNt
function name:  getIterator
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E >   NEW                                                  $0      'ArrayIterator'
          1        SEND_VAL_EX                                                  <array>
          2        DO_FCALL                                          0          
          3      > RETURN                                                       $0
   16     4*     > RETURN                                                       null

End of function getiterator

End of class Example.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
133.49 ms | 2245 KiB | 13 Q