3v4l.org

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

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

End of function scope

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.34 ms | 1398 KiB | 16 Q