3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class Foo{ abstract function xxx(stdClass $a); } trait BarTrick{ abstract function xxx($a): stdClass; } abstract class Bar extends Foo{ use BarTrick; } class Baz extends Bar{ function xxx($a): stdClass{} }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iX31H
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   DECLARE_CLASS                                            'bar', 'foo'
   15     1        DECLARE_CLASS                                            'baz', 'bar'
   17     2      > RETURN                                                   1

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

End of function xxx

End of class Foo.

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

End of function xxx

End of class BarTrick.

Class Bar: [no user functions]
Class Baz:
Function xxx:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iX31H
function name:  xxx
number of ops:  3
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
          1        VERIFY_RETURN_TYPE                                       
          2      > RETURN                                                   null

End of function xxx

End of class Baz.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.36 ms | 995 KiB | 13 Q