3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo implements IteratorAggregate { public function getIterator() { return 0; } } $foo = new Foo(); $foo->getIterator();
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/bLcJb
function name:  (null)
number of ops:  9
compiled vars:  !0 = $foo
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   DECLARE_CLASS                                    $1      '%00foo%2Fin%2FbLcJb0x7fbd4409d070', 'foo'
         1        ADD_INTERFACE                                            $1, 'IteratorAggregate'
         2        VERIFY_ABSTRACT_CLASS                                    $1
  11     3        NEW                                              $2      :-2
         4        DO_FCALL                                      0          
         5        ASSIGN                                                   !0, $2
  12     6        INIT_METHOD_CALL                                         !0, 'getIterator'
         7        DO_FCALL                                      0          
         8      > RETURN                                                   1

Class Foo:
Function getiterator:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/bLcJb
function name:  getIterator
number of ops:  2
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   7     0  E > > RETURN                                                   0
   8     1*     > RETURN                                                   null

End of function getiterator

End of class Foo.

Generated using Vulcan Logic Dumper, using php 7.2.0