3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Whiledev { const A = 1; function b() { echo 'whiledev'; } } namespace { use const Whiledev\A; use function Whiledev\b; echo A; echo b(); } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mDgXd
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'Whiledev%5CA', 1
   11     1        FETCH_CONSTANT                                   ~0      'Whiledev%5CA'
          2        ECHO                                                     ~0
   12     3        INIT_FCALL                                               'whiledev%5Cb'
          4        DO_FCALL                                      0  $1      
          5        ECHO                                                     $1
   14     6      > RETURN                                                   1

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

End of function whiledev%5Cb

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.47 ms | 1396 KiB | 14 Q