3v4l.org

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

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

End of function get_i

End of class I.

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

End of function get_i

End of class II.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.9 ms | 1395 KiB | 17 Q