3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface I { } interface E extends I { } interface C extends I {} interface D extends E, C {} function test1(I $i): void {} function test(D $d): void { test1($d); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LPFYf
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CLASS                                            'e'
    7     1        DECLARE_CLASS                                            'c'
    9     2        DECLARE_CLASS                                            'd'
   15     3      > RETURN                                                   1

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

End of function test1

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LPFYf
function name:  test
number of ops:  5
compiled vars:  !0 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
   14     1        INIT_FCALL                                               'test1'
          2        SEND_VAR                                                 !0
          3        DO_FCALL                                      0          
   15     4      > RETURN                                                   null

End of function test

Class I: [no user functions]
Class E: [no user functions]
Class C: [no user functions]
Class D: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.18 ms | 1386 KiB | 15 Q