3v4l.org

run code in 500+ PHP versions simultaneously
<?php class A { public function setUp() { } } class B extends A { public function setUp(): void { } } $x = new B(); $x->setUp();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gvBoi
function name:  (null)
number of ops:  6
compiled vars:  !0 = $x
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   15     0  E >   NEW                                                  $1      'B'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   16     3        INIT_METHOD_CALL                                             !0, 'setUp'
          4        DO_FCALL                                          0          
          5      > RETURN                                                       1

Class A:
Function setup:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gvBoi
function name:  setUp
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                       null

End of function setup

End of class A.

Class B:
Function setup:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gvBoi
function name:  setUp
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   12     0  E > > RETURN                                                       null

End of function setup

End of class B.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
170.44 ms | 3277 KiB | 13 Q