3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface i { // no promoted property function __construct(int $a); } class x implements i { // promoted property function __construct(private int $a) {} } class y extends x { // valid extension of a promoted property function __construct(int $a) {} } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KUlk3
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                                'x'
   13     1        DECLARE_CLASS                                                'y', 'x'
   18     2      > RETURN                                                       1

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

End of function __construct

End of class i.

Class x:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/KUlk3
function name:  __construct
number of ops:  4
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   RECV                                                 !0      
          1        ASSIGN_OBJ                                                   'a'
          2        OP_DATA                                                      !0
          3      > RETURN                                                       null

End of function __construct

End of class x.

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

End of function __construct

End of class y.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.37 ms | 1459 KiB | 13 Q