3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { final public static function getclass() { var_dump(__CLASS__); } } class b extends a {} class c extends b {} class d extends c {} class e {} var_dump(is_subclass_of('e', 'a'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N0VvR
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'is_subclass_of'
          2        SEND_VAL                                                 'e'
          3        SEND_VAL                                                 'a'
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
          7      > RETURN                                                   1

Class a:
Function getclass:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N0VvR
function name:  getclass
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'a'
          2        DO_ICALL                                                 
    6     3      > RETURN                                                   null

End of function getclass

End of class a.

Class b:
Function getclass:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N0VvR
function name:  getclass
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'a'
          2        DO_ICALL                                                 
    6     3      > RETURN                                                   null

End of function getclass

End of class b.

Class c:
Function getclass:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N0VvR
function name:  getclass
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'a'
          2        DO_ICALL                                                 
    6     3      > RETURN                                                   null

End of function getclass

End of class c.

Class d:
Function getclass:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N0VvR
function name:  getclass
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'var_dump'
          1        SEND_VAL                                                 'a'
          2        DO_ICALL                                                 
    6     3      > RETURN                                                   null

End of function getclass

End of class d.

Class e: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.37 ms | 1396 KiB | 17 Q