3v4l.org

run code in 300+ PHP versions simultaneously
<?php class otherClass { public static function f1 () { echo "\n"; echo "\n".__CLASS__; echo "\n".__FUNCTION__; // parentClass::f2(); // childClass::f3(); 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/dLV0G
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   55     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/dLV0G
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'
   12     3        INIT_STATIC_METHOD_CALL                                  'childClass', 'f2'
          4        DO_FCALL                                      0          
   13     5        INIT_STATIC_METHOD_CALL                                  'childClass', 'f3'
          6        DO_FCALL                                      0          
   14     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/dLV0G
function name:  f2
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   ECHO                                                     '%0A'
   22     1        ECHO                                                     '%0AparentClass'
   23     2        ECHO                                                     '%0Af2'
   25     3        INIT_STATIC_METHOD_CALL                                  'f4'
          4        DO_FCALL                                      0  $0      
          5      > RETURN                                                   $0
   26     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/dLV0G
function name:  f3
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   ECHO                                                     '%0A'
   30     1        ECHO                                                     '%0AparentClass'
   31     2        ECHO                                                     '%0Af3'
   33     3        INIT_STATIC_METHOD_CALL                                  'f4'
          4        DO_FCALL                                      0  $0      
          5      > RETURN                                                   $0
   34     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/dLV0G
function name:  f4
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   37     0  E >   ECHO                                                     '%0A'
   38     1        ECHO                                                     '%0AparentClass'
   39     2        ECHO                                                     '%0Af4'
   40     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/dLV0G
function name:  f4
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   46     0  E >   ECHO                                                     '%0A'
   47     1        ECHO                                                     '%0AchildClass'
   48     2        ECHO                                                     '%0Af4'
   49     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/dLV0G
function name:  f2
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   ECHO                                                     '%0A'
   22     1        ECHO                                                     '%0AparentClass'
   23     2        ECHO                                                     '%0Af2'
   25     3        INIT_STATIC_METHOD_CALL                                  'f4'
          4        DO_FCALL                                      0  $0      
          5      > RETURN                                                   $0
   26     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/dLV0G
function name:  f3
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   ECHO                                                     '%0A'
   30     1        ECHO                                                     '%0AparentClass'
   31     2        ECHO                                                     '%0Af3'
   33     3        INIT_STATIC_METHOD_CALL                                  'f4'
          4        DO_FCALL                                      0  $0      
          5      > RETURN                                                   $0
   34     6*     > RETURN                                                   null

End of function f3

End of class childClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.39 ms | 1403 KiB | 13 Q