3v4l.org

run code in 300+ PHP versions simultaneously
<?php function scope () { static $globals = null; if($globals === null) $globals = array( '_SERVER' => &$_SERVER, '_ENV' => &$_ENV, '_REQUEST' => &$_REQUEST, '_GET' => &$_GET, '_POST' => &$_POST, '_COOKIE' => &$_COOKIE, '_FILES' => &$_FILES, ); var_dump($globals); } scope(); $_POST = null; scope();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NTl1q
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   INIT_FCALL                                               'scope'
          1        DO_FCALL                                      0          
   21     2        FETCH_W                      global              $1      '_POST'
          3        ASSIGN                                                   $1, null
   22     4        INIT_FCALL                                               'scope'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Function scope:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/NTl1q
function name:  scope
number of ops:  22
compiled vars:  !0 = $globals
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   BIND_STATIC                                              !0
    7     1        TYPE_CHECK                                    2          !0
          2      > JMPZ                                                     ~1, ->18
    8     3    >   FETCH_W                      global              $2      '_SERVER'
          4        INIT_ARRAY                                       ~3      $2, '_SERVER'
    9     5        FETCH_W                      global              $4      '_ENV'
          6        ADD_ARRAY_ELEMENT                                ~3      $4, '_ENV'
   10     7        FETCH_W                      global              $5      '_REQUEST'
          8        ADD_ARRAY_ELEMENT                                ~3      $5, '_REQUEST'
   11     9        FETCH_W                      global              $6      '_GET'
         10        ADD_ARRAY_ELEMENT                                ~3      $6, '_GET'
   12    11        FETCH_W                      global              $7      '_POST'
         12        ADD_ARRAY_ELEMENT                                ~3      $7, '_POST'
   13    13        FETCH_W                      global              $8      '_COOKIE'
         14        ADD_ARRAY_ELEMENT                                ~3      $8, '_COOKIE'
   14    15        FETCH_W                      global              $9      '_FILES'
         16        ADD_ARRAY_ELEMENT                                ~3      $9, '_FILES'
    7    17        ASSIGN                                                   !0, ~3
   17    18    >   INIT_FCALL                                               'var_dump'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
   18    21      > RETURN                                                   null

End of function scope

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.22 ms | 1399 KiB | 17 Q