3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo { function a() { printf("%s\n", __FUNCTION__); } function b() { printf("%s\n", __FUNCTION__); } function c() { printf("%s\n", __FUNCTION__); } } namespace Bar { final class Util { public static function a() { printf("%s\n", __METHOD__); } public static function b() { printf("%s\n", __METHOD__); } public static function c() { printf("%s\n", __METHOD__); } } } namespace Baz { use function Foo\{a, b, c}; use Bar\Util; a(); b(); c(); Util::a(); Util::b(); Util::c(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V3LjX
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   INIT_FCALL                                               'foo%5Ca'
          1        DO_FCALL                                      0          
   25     2        INIT_FCALL                                               'foo%5Cb'
          3        DO_FCALL                                      0          
   26     4        INIT_FCALL                                               'foo%5Cc'
          5        DO_FCALL                                      0          
   28     6        INIT_STATIC_METHOD_CALL                                  'Bar%5CUtil', 'a'
          7        DO_FCALL                                      0          
   29     8        INIT_STATIC_METHOD_CALL                                  'Bar%5CUtil', 'b'
          9        DO_FCALL                                      0          
   30    10        INIT_STATIC_METHOD_CALL                                  'Bar%5CUtil', 'c'
         11        DO_FCALL                                      0          
   31    12      > RETURN                                                   1

Function foo%5Ca:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V3LjX
function name:  Foo\a
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cprintf'
          1        SEND_VAL_EX                                              '%25s%0A'
          2        SEND_VAL_EX                                              'Foo%5Ca'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   null

End of function foo%5Ca

Function foo%5Cb:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V3LjX
function name:  Foo\b
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cprintf'
          1        SEND_VAL_EX                                              '%25s%0A'
          2        SEND_VAL_EX                                              'Foo%5Cb'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   null

End of function foo%5Cb

Function foo%5Cc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V3LjX
function name:  Foo\c
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_NS_FCALL_BY_NAME                                    'Foo%5Cprintf'
          1        SEND_VAL_EX                                              '%25s%0A'
          2        SEND_VAL_EX                                              'Foo%5Cc'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   null

End of function foo%5Cc

Class Bar\Util:
Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V3LjX
function name:  a
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_NS_FCALL_BY_NAME                                    'Bar%5Cprintf'
          1        SEND_VAL_EX                                              '%25s%0A'
          2        SEND_VAL_EX                                              'Bar%5CUtil%3A%3Aa'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   null

End of function a

Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V3LjX
function name:  b
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_NS_FCALL_BY_NAME                                    'Bar%5Cprintf'
          1        SEND_VAL_EX                                              '%25s%0A'
          2        SEND_VAL_EX                                              'Bar%5CUtil%3A%3Ab'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   null

End of function b

Function c:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/V3LjX
function name:  c
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_NS_FCALL_BY_NAME                                    'Bar%5Cprintf'
          1        SEND_VAL_EX                                              '%25s%0A'
          2        SEND_VAL_EX                                              'Bar%5CUtil%3A%3Ac'
          3        DO_FCALL                                      0          
          4      > RETURN                                                   null

End of function c

End of class Bar\Util.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.58 ms | 1403 KiB | 18 Q