3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x implements IteratorAggregate { public function getIterator(){} } var_dump(new x() instanceof IteratorAggregate);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Mq65B
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'x'
    7     1        INIT_FCALL                                               'var_dump'
          2        NEW                                              $0      'x'
          3        DO_FCALL                                      0          
          4        INSTANCEOF                                       ~2      $0, 'IteratorAggregate'
          5        SEND_VAL                                                 ~2
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

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

End of function getiterator

End of class x.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.1 ms | 1394 KiB | 15 Q