3v4l.org

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

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

End of function method1

End of class A.

Class B:
Function method2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xt61h
function name:  method2
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_STATIC_METHOD_CALL                                  'method1'
          1        DO_FCALL                                      0          
   10     2      > RETURN                                                   null

End of function method2

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

End of function method1

End of class B.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.25 ms | 1393 KiB | 13 Q