3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo\Bar { class a { } class b { } function a() { return 'function a'; } function b() { return 'function b'; } const a = 'const a'; const b = 'const b'; } namespace { use Foo\Bar\a; use Foo\Bar\b; use function Foo\Bar\a; use function Foo\Bar\b; use const Foo\Bar\a; use const Foo\Bar\b; var_dump(new a()); var_dump(new b()); var_dump(a()); var_dump(b()); var_dump(a); var_dump(b); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HLrPI
function name:  (null)
number of ops:  31
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CONST                                            'Foo%5CBar%5Ca', 'const+a'
    9     1        DECLARE_CONST                                            'Foo%5CBar%5Cb', 'const+b'
   20     2        INIT_FCALL                                               'var_dump'
          3        NEW                                              $0      'Foo%5CBar%5Ca'
          4        DO_FCALL                                      0          
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                                 
   21     7        INIT_FCALL                                               'var_dump'
          8        NEW                                              $3      'Foo%5CBar%5Cb'
          9        DO_FCALL                                      0          
         10        SEND_VAR                                                 $3
         11        DO_ICALL                                                 
   22    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'foo%5Cbar%5Ca'
         14        DO_FCALL                                      0  $6      
         15        SEND_VAR                                                 $6
         16        DO_ICALL                                                 
   23    17        INIT_FCALL                                               'var_dump'
         18        INIT_FCALL                                               'foo%5Cbar%5Cb'
         19        DO_FCALL                                      0  $8      
         20        SEND_VAR                                                 $8
         21        DO_ICALL                                                 
   24    22        INIT_FCALL                                               'var_dump'
         23        FETCH_CONSTANT                                   ~10     'Foo%5CBar%5Ca'
         24        SEND_VAL                                                 ~10
         25        DO_ICALL                                                 
   25    26        INIT_FCALL                                               'var_dump'
         27        FETCH_CONSTANT                                   ~12     'Foo%5CBar%5Cb'
         28        SEND_VAL                                                 ~12
         29        DO_ICALL                                                 
   26    30      > RETURN                                                   1

Function foo%5Cbar%5Ca:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HLrPI
function name:  Foo\Bar\a
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   'function+a'
          1*     > RETURN                                                   null

End of function foo%5Cbar%5Ca

Function foo%5Cbar%5Cb:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HLrPI
function name:  Foo\Bar\b
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   'function+b'
          1*     > RETURN                                                   null

End of function foo%5Cbar%5Cb

Class Foo\Bar\a: [no user functions]
Class Foo\Bar\b: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.05 ms | 1403 KiB | 17 Q