3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { public function m() {} } class y extends x { public function m():?string {} } $x = new x(); $y = new y(); $x->m(); $y->m();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Y1UXW
function name:  (null)
number of ops:  11
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $2      'x'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   12     3        NEW                                              $5      'y'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $5
   13     6        INIT_METHOD_CALL                                         !0, 'm'
          7        DO_FCALL                                      0          
   14     8        INIT_METHOD_CALL                                         !1, 'm'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

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

End of function m

End of class x.

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

End of function m

End of class y.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.71 ms | 1393 KiB | 13 Q