3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface I { function __construct(int $i); } class X implements I { function __construct(int $i) {} } // Fatal error: Declaration of Yy::__construct(string $a) must be // compatible with I::__construct(int $i) class Y extends X { function __construct(string $a) {} } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5qeE1
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   DECLARE_CLASS                                                'x'
   14     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/5qeE1
function name:  __construct
number of ops:  2
compiled vars:  !0 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     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/5qeE1
function name:  __construct
number of ops:  2
compiled vars:  !0 = $i
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   RECV                                                 !0      
          1      > 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/5qeE1
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:
143.89 ms | 1485 KiB | 13 Q