3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Bar {} class TheParent{ public function __construct(string $foo, Bar $storage, string $baz) {} } class Foo extends TheParent { public function __construct(string $foo, ?Bar $storage = NULL, string $baz) {} } class TheChild extends Foo { public function __construct(string $foo, Bar $storage, string $baz) {} }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XAAhc
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E > > RETURN                                                   1

Class Bar: [no user functions]
Class TheParent:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XAAhc
function name:  __construct
number of ops:  4
compiled vars:  !0 = $foo, !1 = $storage, !2 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3      > RETURN                                                   null

End of function __construct

End of class TheParent.

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

End of function __construct

End of class Foo.

Class TheChild:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XAAhc
function name:  __construct
number of ops:  4
compiled vars:  !0 = $foo, !1 = $storage, !2 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3      > RETURN                                                   null

End of function __construct

End of class TheChild.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.27 ms | 941 KiB | 13 Q