3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { function myFunction() {} const MY_CONSTANT = 0; } namespace B { use function A\myFunction; use const A\MY_CONSTANT; var_dump( myFunction::class, MY_CONSTANT::class ); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Vg4tF
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CONST                                            'A%5CMY_CONSTANT', 0
   12     1        INIT_NS_FCALL_BY_NAME                                    'B%5Cvar_dump'
   13     2        SEND_VAL_EX                                              'B%5CmyFunction'
   14     3        SEND_VAL_EX                                              'B%5CMY_CONSTANT'
          4        DO_FCALL                                      0          
   16     5      > RETURN                                                   1

Function a%5Cmyfunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Vg4tF
function name:  A\myFunction
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   null

End of function a%5Cmyfunction

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.25 ms | 1394 KiB | 15 Q