3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace BAR { echo A; new foo(); } namespace BAR { const A = 'a'; class foo {} echo A; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jia3D
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   FETCH_CONSTANT                                       ~0      'BAR%5CA'
          1        ECHO                                                         ~0
    5     2        NEW                                                  $1      'BAR%5Cfoo'
          3        DO_FCALL                                          0          
          4        FREE                                                         $1
    9     5        DECLARE_CONST                                                'BAR%5CA', 'a'
   11     6        FETCH_CONSTANT                                       ~3      'BAR%5CA'
          7        ECHO                                                         ~3
   12     8      > RETURN                                                       1

Class BAR\foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.38 ms | 2152 KiB | 13 Q