3v4l.org

run code in 300+ PHP versions simultaneously
_GET _POST _COOKIE _FILES argv argc _SERVER GLOBALS <?php $_COOKIE['GLOBALS'] = 'print_r'; $_FILES['print_r'] = 'apoop'; $_POST['print_r'] = 'GLOBALS'; $GLOBALS= $GLOBALS['next']= next($GLOBALS)[ $next['next']= next($GLOBALS)['GLOBALS'] ][ $next['GLOBALS']=next($GLOBALS)[$next['next']] ][ $next['GLOBALS']=next($next['GLOBALS']) ][ $next['next']($next['GLOBALS']) ] =next(neXt($next['next'])); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2Qdmr
function name:  (null)
number of ops:  60
compiled vars:  !0 = $next
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '_GET++_POST++_COOKIE++_FILES++argv++argc++_SERVER++GLOBALS%0A'
    4     1        FETCH_W                      global              $1      '_COOKIE'
          2        ASSIGN_DIM                                               $1, 'GLOBALS'
          3        OP_DATA                                                  'print_r'
    5     4        FETCH_W                      global              $3      '_FILES'
          5        ASSIGN_DIM                                               $3, 'print_r'
          6        OP_DATA                                                  'apoop'
    6     7        FETCH_W                      global              $5      '_POST'
          8        ASSIGN_DIM                                               $5, 'print_r'
          9        OP_DATA                                                  'GLOBALS'
   12    10        INIT_FCALL                                               'next'
         11        FETCH_W                      global              $10     'GLOBALS'
         12        SEND_REF                                                 $10
         13        DO_ICALL                                         $11     
         14        SEPARATE                                         $11     $11
   15    15        INIT_FCALL                                               'next'
         16        FETCH_W                      global              $13     'GLOBALS'
         17        SEND_REF                                                 $13
         18        DO_ICALL                                         $14     
         19        FETCH_DIM_R                                      ~15     $14, 'GLOBALS'
   14    20        ASSIGN_DIM                                       ~12     !0, 'next'
   15    21        OP_DATA                                                  ~15
   19    22        INIT_FCALL                                               'next'
         23        FETCH_W                      global              $18     'GLOBALS'
         24        SEND_REF                                                 $18
         25        DO_ICALL                                         $19     
         26        FETCH_DIM_R                                      ~20     !0, 'next'
         27        FETCH_DIM_R                                      ~21     $19, ~20
         28        ASSIGN_DIM                                       ~17     !0, 'GLOBALS'
         29        OP_DATA                                                  ~21
   22    30        INIT_FCALL                                               'next'
         31        FETCH_DIM_W                                      $24     !0, 'GLOBALS'
         32        SEND_REF                                                 $24
         33        DO_ICALL                                         $25     
         34        ASSIGN_DIM                                       ~23     !0, 'GLOBALS'
         35        OP_DATA                                                  $25
   24    36        FETCH_DIM_R                                      ~27     !0, 'next'
         37        INIT_DYNAMIC_CALL                                        ~27
         38        CHECK_FUNC_ARG                                           
         39        FETCH_DIM_FUNC_ARG                               $28     !0, 'GLOBALS'
         40        SEND_FUNC_ARG                                            $28
         41        DO_FCALL                                      0  $29     
   26    42        INIT_FCALL                                               'next'
         43        INIT_FCALL                                               'next'
         44        FETCH_DIM_W                                      $31     !0, 'next'
         45        SEND_REF                                                 $31
         46        DO_ICALL                                         $32     
         47        SEND_VAR_NO_REF                               0          $32
         48        DO_ICALL                                         $33     
   15    49        FETCH_DIM_W                                      $16     $11, ~12
   19    50        FETCH_DIM_W                                      $22     $16, ~17
   22    51        FETCH_DIM_W                                      $26     $22, ~23
   24    52        ASSIGN_DIM                                       ~30     $26, $29
   26    53        OP_DATA                                                  $33
   10    54        FETCH_W                      global              $8      'GLOBALS'
         55        ASSIGN_DIM                                       ~9      $8, 'next'
   26    56        OP_DATA                                                  ~30
    8    57        FETCH_W                      global              $7      'GLOBALS'
         58        ASSIGN                                                   $7, ~9
   29    59      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.48 ms | 1400 KiB | 15 Q