3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Papa{ public static function foo(){ echo 'p:foo'; } } class Child extends Papa { //public static function foo(){ echo 'c:foo'; } } class GrandChild extends Child { } GrandChild::foo();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T7Nua
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_STATIC_METHOD_CALL                                  'GrandChild', 'foo'
          1        DO_FCALL                                      0          
          2      > RETURN                                                   1

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

End of function foo

End of class Papa.

Class Child:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T7Nua
function name:  foo
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   ECHO                                                     'p%3Afoo'
          1      > RETURN                                                   null

End of function foo

End of class Child.

Class GrandChild:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T7Nua
function name:  foo
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
          0  E >   ECHO                                                     'p%3Afoo'
          1      > RETURN                                                   null

End of function foo

End of class GrandChild.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.89 ms | 1394 KiB | 13 Q