3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace MyProject; static $classname; $classname='p'; function get($classname) { $a = __NAMESPACE__ . '\\' . $classname; echo $a; } namespace\get($classname); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hMGft
function name:  (null)
number of ops:  6
compiled vars:  !0 = $classname
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   BIND_STATIC                                              !0
    5     1        ASSIGN                                                   !0, 'p'
   14     2        INIT_FCALL                                               'myproject%5Cget'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0          
   15     5      > RETURN                                                   1

Function myproject%5Cget:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hMGft
function name:  MyProject\get
number of ops:  5
compiled vars:  !0 = $classname, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        CONCAT                                           ~2      'MyProject%5C', !0
          2        ASSIGN                                                   !1, ~2
   11     3        ECHO                                                     !1
   13     4      > RETURN                                                   null

End of function myproject%5Cget

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.51 ms | 1388 KiB | 14 Q