3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Common { function createCommon(); } interface Specific1 extends Common { function createSpecific1(); } interface Specific2 extends Common { function createSpecific2(); } class A implements Specific1, Common { public function createCommon() { } public function createSpecific1() { } } print_r(class_implements(new A()));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gkji8
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_CLASS                                            'specific1'
    5     1        DECLARE_CLASS                                            'specific2'
    7     2        DECLARE_CLASS                                            'a'
   13     3        INIT_FCALL                                               'print_r'
          4        INIT_FCALL                                               'class_implements'
          5        NEW                                              $0      'A'
          6        DO_FCALL                                      0          
          7        SEND_VAR                                                 $0
          8        DO_ICALL                                         $2      
          9        SEND_VAR                                                 $2
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

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

End of function createcommon

End of class Common.

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

End of function createspecific1

End of class Specific1.

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

End of function createspecific2

End of class Specific2.

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

End of function createcommon

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

End of function createspecific1

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
184.35 ms | 1396 KiB | 17 Q