3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace MyProject; use blah\blah as mine; // see "Using namespaces: importing/aliasing" blah\mine(); // calls function MyProject\blah\mine() namespace\blah\mine(); // calls function MyProject\blah\mine() namespace\func(); // calls function MyProject\func() namespace\sub\func(); // calls function MyProject\sub\func() namespace\cname::method(); // calls static method "method" of class MyProject\cname $a = new namespace\sub\cname(); // instantiates object of class MyProject\sub\cname $b = namespace\CONSTANT; // assigns value of constant MyProject\CONSTANT to $b ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lj1UT
function name:  (null)
number of ops:  16
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL_BY_NAME                                       'MyProject%5Cblah%5Cmine'
          1        DO_FCALL                                      0          
    7     2        INIT_FCALL_BY_NAME                                       'MyProject%5Cblah%5Cmine'
          3        DO_FCALL                                      0          
    9     4        INIT_FCALL_BY_NAME                                       'MyProject%5Cfunc'
          5        DO_FCALL                                      0          
   10     6        INIT_FCALL_BY_NAME                                       'MyProject%5Csub%5Cfunc'
          7        DO_FCALL                                      0          
   11     8        INIT_STATIC_METHOD_CALL                                  'MyProject%5Ccname', 'method'
          9        DO_FCALL                                      0          
   12    10        NEW                                              $7      'MyProject%5Csub%5Ccname'
         11        DO_FCALL                                      0          
         12        ASSIGN                                                   !0, $7
   13    13        FETCH_CONSTANT                                   ~10     'MyProject%5CCONSTANT'
         14        ASSIGN                                                   !1, ~10
   14    15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.1 ms | 1393 KiB | 13 Q