3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public static function test() { static::foo(); static::bar(); } public static function foo() { echo __METHOD__ . " called\n"; } private static function bar() { echo __METHOD__ . " called\n"; } } class b extends a { } class c extends a { public static function foo() { echo __METHOD__ . " 123called\n"; } private static function bar() { echo __METHOD__ . " called\n"; } } a::test(); b::test(); c::test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cVeYF
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   33     0  E >   INIT_STATIC_METHOD_CALL                                  'a', 'test'
          1        DO_FCALL                                      0          
   34     2        INIT_STATIC_METHOD_CALL                                  'b', 'test'
          3        DO_FCALL                                      0          
   35     4        INIT_STATIC_METHOD_CALL                                  'c', 'test'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class a:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cVeYF
function name:  test
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_STATIC_METHOD_CALL                                  'foo'
          1        DO_FCALL                                      0          
    6     2        INIT_STATIC_METHOD_CALL                                  'bar'
          3        DO_FCALL                                      0          
    7     4      > RETURN                                                   null

End of function test

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

End of function foo

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

End of function bar

End of class a.

Class b:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cVeYF
function name:  test
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_STATIC_METHOD_CALL                                  'foo'
          1        DO_FCALL                                      0          
    6     2        INIT_STATIC_METHOD_CALL                                  'bar'
          3        DO_FCALL                                      0          
    7     4      > RETURN                                                   null

End of function test

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

End of function foo

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

End of function bar

End of class b.

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

End of function foo

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

End of function bar

Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cVeYF
function name:  test
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_STATIC_METHOD_CALL                                  'foo'
          1        DO_FCALL                                      0          
    6     2        INIT_STATIC_METHOD_CALL                                  'bar'
          3        DO_FCALL                                      0          
    7     4      > RETURN                                                   null

End of function test

End of class c.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.21 ms | 1399 KiB | 13 Q