3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface interfejs { public function make(); } abstract class rodzic implements interfejs { public function make() { return ''; } } final class dziecko extends rodzic { } $s = new dziecko; var_dump($s instanceof interfejs);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZhiqP
function name:  (null)
number of ops:  10
compiled vars:  !0 = $s
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                            'rodzic'
   14     1        DECLARE_CLASS                                            'dziecko', 'rodzic'
   18     2        NEW                                              $1      'dziecko'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   19     5        INIT_FCALL                                               'var_dump'
          6        INSTANCEOF                                       ~4      !0, 'interfejs'
          7        SEND_VAL                                                 ~4
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

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

End of function make

End of class interfejs.

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

End of function make

End of class rodzic.

Class dziecko: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.11 ms | 1399 KiB | 15 Q