3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace My\NS; const STDIN = 'f00'; echo STDIN, PHP_EOL; echo \STDIN, PHP_EOL; namespace My\Other; echo STDIN, PHP_EOL; echo \My\NS\STDIN, PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gvZhG
function name:  (null)
number of ops:  18
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_CONST                                            'My%5CNS%5CSTDIN', 'f00'
    7     1        FETCH_CONSTANT                                   ~0      'My%5CNS%5CSTDIN'
          2        ECHO                                                     ~0
          3        FETCH_CONSTANT                                   ~1      'My%5CNS%5CPHP_EOL'
          4        ECHO                                                     ~1
    8     5        FETCH_CONSTANT                                   ~2      'STDIN'
          6        ECHO                                                     ~2
          7        FETCH_CONSTANT                                   ~3      'My%5CNS%5CPHP_EOL'
          8        ECHO                                                     ~3
   12     9        FETCH_CONSTANT                                   ~4      'My%5COther%5CSTDIN'
         10        ECHO                                                     ~4
         11        FETCH_CONSTANT                                   ~5      'My%5COther%5CPHP_EOL'
         12        ECHO                                                     ~5
   13    13        FETCH_CONSTANT                                   ~6      'My%5CNS%5CSTDIN'
         14        ECHO                                                     ~6
         15        FETCH_CONSTANT                                   ~7      'My%5COther%5CPHP_EOL'
         16        ECHO                                                     ~7
   14    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.77 ms | 1001 KiB | 13 Q