3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { private function getName() { return 'John'; } } class Bar extends Foo { public function getName($extraArgument) { return $extraArgument; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SNlDO
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   17     0  E > > RETURN                                                       1

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

End of function getname

End of class Foo.

Class Bar:
Function getname:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SNlDO
function name:  getName
number of ops:  3
compiled vars:  !0 = $extraArgument
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   RECV                                                 !0      
   15     1      > RETURN                                                       !0
   16     2*     > RETURN                                                       null

End of function getname

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.53 ms | 3259 KiB | 13 Q