3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace ABC; class A implements \IteratorAggregate { public function getIterator() {} } $a = new A(); var_dump($a instanceof Traversable);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/59iit
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CLASS                                            'abc%5Ca'
   11     1        NEW                                              $1      'ABC%5CA'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   13     4        INIT_NS_FCALL_BY_NAME                                    'ABC%5Cvar_dump'
          5        INSTANCEOF                                       ~4      !0, 'ABC%5CTraversable'
          6        SEND_VAL_EX                                              ~4
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class ABC\A:
Function getiterator:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/59iit
function name:  getIterator
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   null

End of function getiterator

End of class ABC\A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.48 ms | 1385 KiB | 15 Q