3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace { const A = 'in \\'; } namespace A { const A = 'in A'; } namespace A\B { const A = 'in A\\B'; } namespace A\B\C { echo A; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FekcH
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   DECLARE_CONST                                                'A', 'in+%5C'
    8     1        DECLARE_CONST                                                'A%5CA', 'in+A'
   12     2        DECLARE_CONST                                                'A%5CB%5CA', 'in+A%5CB'
   16     3        FETCH_CONSTANT                                       ~0      'A%5CB%5CC%5CA'
          4        ECHO                                                         ~0
   17     5      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
167.86 ms | 1604 KiB | 13 Q