3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a { public static function test() { self::foo(); self::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 test() { echo __METHOD__ . " 123123called\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/bG1Ad
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   29     0  E >   INIT_STATIC_METHOD_CALL                                  'a', 'test'
          1        DO_FCALL                                      0          
   31     2        INIT_STATIC_METHOD_CALL                                  'b', 'test'
          3        DO_FCALL                                      0          
   33     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/bG1Ad
function name:  test
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_STATIC_METHOD_CALL                                  'foo'
          1        DO_FCALL                                      0          
    7     2        INIT_STATIC_METHOD_CALL                                  'bar'
          3        DO_FCALL                                      0          
    8     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/bG1Ad
function name:  foo
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'a%3A%3Afoo+called%0A'
   12     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/bG1Ad
function name:  bar
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ECHO                                                     'a%3A%3Abar+called%0A'
   16     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/bG1Ad
function name:  test
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_STATIC_METHOD_CALL                                  'foo'
          1        DO_FCALL                                      0          
    7     2        INIT_STATIC_METHOD_CALL                                  'bar'
          3        DO_FCALL                                      0          
    8     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/bG1Ad
function name:  foo
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'a%3A%3Afoo+called%0A'
   12     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/bG1Ad
function name:  bar
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ECHO                                                     'a%3A%3Abar+called%0A'
   16     1      > RETURN                                                   null

End of function bar

End of class b.

Class c:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bG1Ad
function name:  test
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   ECHO                                                     'c%3A%3Atest+123123called%0A'
   25     1      > 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/bG1Ad
function name:  foo
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ECHO                                                     'a%3A%3Afoo+called%0A'
   12     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/bG1Ad
function name:  bar
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ECHO                                                     'a%3A%3Abar+called%0A'
   16     1      > RETURN                                                   null

End of function bar

End of class c.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.14 ms | 1399 KiB | 13 Q