3v4l.org

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

Class otherClass:
Function f1:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2hL9I
function name:  f1
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     '%0A'
    6     1        ECHO                                                     '%0AotherClass'
    7     2        ECHO                                                     '%0Af1'
    9     3        INIT_STATIC_METHOD_CALL                                  'childClass', 'f2'
          4        DO_FCALL                                      0          
   10     5        INIT_STATIC_METHOD_CALL                                  'childClass', 'f3'
          6        DO_FCALL                                      0          
   11     7      > RETURN                                                   null

End of function f1

End of class otherClass.

Class parentClass:
Function f2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2hL9I
function name:  f2
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   ECHO                                                     '%0A'
   18     1        ECHO                                                     '%0AparentClass'
   19     2        ECHO                                                     '%0Af2'
   21     3        INIT_STATIC_METHOD_CALL                                  'f4'
          4        DO_FCALL                                      0  $0      
          5      > RETURN                                                   $0
   22     6*     > RETURN                                                   null

End of function f2

Function f3:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2hL9I
function name:  f3
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   ECHO                                                     '%0A'
   26     1        ECHO                                                     '%0AparentClass'
   27     2        ECHO                                                     '%0Af3'
   29     3        INIT_STATIC_METHOD_CALL                                  'f4'
          4        DO_FCALL                                      0  $0      
          5      > RETURN                                                   $0
   30     6*     > RETURN                                                   null

End of function f3

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

End of function f4

End of class parentClass.

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

End of function f4

Function f2:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2hL9I
function name:  f2
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   ECHO                                                     '%0A'
   18     1        ECHO                                                     '%0AparentClass'
   19     2        ECHO                                                     '%0Af2'
   21     3        INIT_STATIC_METHOD_CALL                                  'f4'
          4        DO_FCALL                                      0  $0      
          5      > RETURN                                                   $0
   22     6*     > RETURN                                                   null

End of function f2

Function f3:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2hL9I
function name:  f3
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   ECHO                                                     '%0A'
   26     1        ECHO                                                     '%0AparentClass'
   27     2        ECHO                                                     '%0Af3'
   29     3        INIT_STATIC_METHOD_CALL                                  'f4'
          4        DO_FCALL                                      0  $0      
          5      > RETURN                                                   $0
   30     6*     > RETURN                                                   null

End of function f3

End of class childClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.68 ms | 1403 KiB | 13 Q