3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(~0); class A { public function &foo() { } } class B extends A { public function &foo() { } } $b = new B;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/UX2B1
function name:  (null)
number of ops:  7
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
   19     3        NEW                                              $2      'B'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
          6      > RETURN                                                   1

Class A:
Function foo:
Finding entry points
Branch analysis from position: 0
Return found
filename:       /in/UX2B1
function name:  foo
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > RETURN_BY_REF                                            null

End of function foo

End of class A.

Class B:
Function foo:
Finding entry points
Branch analysis from position: 0
Return found
filename:       /in/UX2B1
function name:  foo
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E > > RETURN_BY_REF                                            null

End of function foo

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.65 ms | 1399 KiB | 15 Q