3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace websharks\test; $GLOBALS[__NAMESPACE__] = 1; $app = $GLOBALS[__NAMESPACE__] ?? 'hello'; echo $app;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/O7DJR
function name:  (null)
number of ops:  10
compiled vars:  !0 = $app
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   FETCH_W                      global              $1      'GLOBALS'
          1        ASSIGN_DIM                                               $1, 'websharks%5Ctest'
          2        OP_DATA                                                  1
    5     3        FETCH_IS                                         ~3      'GLOBALS'
          4        FETCH_DIM_IS                                     ~4      ~3, 'websharks%5Ctest'
          5        COALESCE                                         ~5      ~4
          6        QM_ASSIGN                                        ~5      'hello'
          7        ASSIGN                                                   !0, ~5
    6     8        ECHO                                                     !0
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
203.01 ms | 1392 KiB | 13 Q