3v4l.org

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

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

End of function myproject%5Cget

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.05 ms | 1393 KiB | 13 Q