3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface I {} class_alias(I::class, I1::class); class_alias(I1::class, I2::class); class C implements I2 {} function f(I1 $_): void {} f(new C);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1OFJK
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'class_alias'
          1        SEND_VAL                                                     'I'
          2        SEND_VAL                                                     'I1'
          3        DO_ICALL                                                     
    4     4        INIT_FCALL                                                   'class_alias'
          5        SEND_VAL                                                     'I1'
          6        SEND_VAL                                                     'I2'
          7        DO_ICALL                                                     
    6     8        DECLARE_CLASS                                                'c'
   10     9        INIT_FCALL                                                   'f'
         10        NEW                                                  $2      'C'
         11        DO_FCALL                                          0          
         12        SEND_VAR                                                     $2
         13        DO_FCALL                                          0          
         14      > RETURN                                                       1

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

End of function f

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.34 ms | 1998 KiB | 15 Q