3v4l.org

run code in 300+ PHP versions simultaneously
_GET _POST _COOKIE _FILES argv argc _SERVER GLOBALS <?php $_COOKIE['GLOBALS'] = 'print_r'; $_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'])); foreach($GLOBALS as $var_name => $value) { echo $var_name; echo ' '; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 58, Position 2 = 63
Branch analysis from position: 58
2 jumps found. (Code = 78) Position 1 = 59, Position 2 = 63
Branch analysis from position: 59
1 jumps found. (Code = 42) Position 1 = 58
Branch analysis from position: 58
Branch analysis from position: 63
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 63
filename:       /in/X1v9q
function name:  (null)
number of ops:  65
compiled vars:  !0 = $next, !1 = $value, !2 = $var_name
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              $3      '_COOKIE'
          2        ASSIGN_DIM                                               $3, 'GLOBALS'
          3        OP_DATA                                                  'print_r'
    5     4        FETCH_W                      global              $5      '_POST'
          5        ASSIGN_DIM                                               $5, 'print_r'
          6        OP_DATA                                                  'GLOBALS'
   11     7        INIT_FCALL                                               'next'
          8        FETCH_W                      global              $10     'GLOBALS'
          9        SEND_REF                                                 $10
         10        DO_ICALL                                         $11     
         11        SEPARATE                                         $11     $11
   14    12        INIT_FCALL                                               'next'
         13        FETCH_W                      global              $13     'GLOBALS'
         14        SEND_REF                                                 $13
         15        DO_ICALL                                         $14     
         16        FETCH_DIM_R                                      ~15     $14, 'GLOBALS'
   13    17        ASSIGN_DIM                                       ~12     !0, 'next'
   14    18        OP_DATA                                                  ~15
   18    19        INIT_FCALL                                               'next'
         20        FETCH_W                      global              $18     'GLOBALS'
         21        SEND_REF                                                 $18
         22        DO_ICALL                                         $19     
         23        FETCH_DIM_R                                      ~20     !0, 'next'
         24        FETCH_DIM_R                                      ~21     $19, ~20
         25        ASSIGN_DIM                                       ~17     !0, 'GLOBALS'
         26        OP_DATA                                                  ~21
   21    27        INIT_FCALL                                               'next'
         28        FETCH_DIM_W                                      $24     !0, 'GLOBALS'
         29        SEND_REF                                                 $24
         30        DO_ICALL                                         $25     
         31        ASSIGN_DIM                                       ~23     !0, 'GLOBALS'
         32        OP_DATA                                                  $25
   23    33        FETCH_DIM_R                                      ~27     !0, 'next'
         34        INIT_DYNAMIC_CALL                                        ~27
         35        CHECK_FUNC_ARG                                           
         36        FETCH_DIM_FUNC_ARG                               $28     !0, 'GLOBALS'
         37        SEND_FUNC_ARG                                            $28
         38        DO_FCALL                                      0  $29     
   25    39        INIT_FCALL                                               'next'
         40        INIT_FCALL                                               'next'
         41        FETCH_DIM_W                                      $31     !0, 'next'
         42        SEND_REF                                                 $31
         43        DO_ICALL                                         $32     
         44        SEND_VAR_NO_REF                               0          $32
         45        DO_ICALL                                         $33     
   14    46        FETCH_DIM_W                                      $16     $11, ~12
   18    47        FETCH_DIM_W                                      $22     $16, ~17
   21    48        FETCH_DIM_W                                      $26     $22, ~23
   23    49        ASSIGN_DIM                                       ~30     $26, $29
   25    50        OP_DATA                                                  $33
    9    51        FETCH_W                      global              $8      'GLOBALS'
         52        ASSIGN_DIM                                       ~9      $8, 'next'
   25    53        OP_DATA                                                  ~30
    7    54        FETCH_W                      global              $7      'GLOBALS'
         55        ASSIGN                                                   $7, ~9
   28    56        FETCH_R                      global              ~35     'GLOBALS'
         57      > FE_RESET_R                                       $36     ~35, ->63
         58    > > FE_FETCH_R                                       ~37     $36, !1, ->63
         59    >   ASSIGN                                                   !2, ~37
   29    60        ECHO                                                     !2
   30    61        ECHO                                                     '++'
   28    62      > JMP                                                      ->58
         63    >   FE_FREE                                                  $36
   32    64      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.33 ms | 1392 KiB | 15 Q