3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface common { function get($index); } interface legacy extends common {}; interface modern extends common {}; class defaultImpl implements legacy, modern { public function get($index) {} }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cjY9q
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   DECLARE_CLASS                                            'legacy'
    5     1        DECLARE_CLASS                                            'modern'
    8     2        DECLARE_CLASS                                            'defaultimpl'
   11     3      > RETURN                                                   1

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

End of function get

End of class common.

Class legacy: [no user functions]
Class modern: [no user functions]
Class defaultImpl:
Function get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cjY9q
function name:  get
number of ops:  2
compiled vars:  !0 = $index
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function get

End of class defaultImpl.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.95 ms | 1393 KiB | 13 Q