3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface a { public function aa(); } interface b extends a { public function bb(); } class aa implements a { public function aa() { echo 'aa'; } } class bb implements b { public function bb() { echo 'bb'; } } $aa = new aa(); $aa->aa(); $bb = new bb(); $bb->bb(); $aa->bb();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ceAfZ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $aa, !1 = $bb
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                            'b'
   13     1        DECLARE_CLASS                                            'aa'
   20     2        DECLARE_CLASS                                            'bb'
   26     3        NEW                                              $2      'aa'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
   27     6        INIT_METHOD_CALL                                         !0, 'aa'
          7        DO_FCALL                                      0          
   29     8        NEW                                              $6      'bb'
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $6
   30    11        INIT_METHOD_CALL                                         !1, 'bb'
         12        DO_FCALL                                      0          
   32    13        INIT_METHOD_CALL                                         !0, 'bb'
         14        DO_FCALL                                      0          
         15      > RETURN                                                   1

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

End of function aa

End of class a.

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

End of function bb

End of class b.

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

End of function aa

End of class aa.

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

End of function bb

End of class bb.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.03 ms | 1395 KiB | 13 Q