3v4l.org

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

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

End of function myproject%5Cget

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.8 ms | 1396 KiB | 14 Q