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)[ $GLOBALS['next']['next']= next($GLOBALS)['GLOBALS'] ][ $next['GLOBALS']=next($GLOBALS[GLOBALS]['GLOBALS'])[$next['next']] ][ $next['GLOBALS']=next($next['GLOBALS']) ][ $GLOBALS[next]['next']($GLOBALS['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 = 68, Position 2 = 73
Branch analysis from position: 68
2 jumps found. (Code = 78) Position 1 = 69, Position 2 = 73
Branch analysis from position: 69
1 jumps found. (Code = 42) Position 1 = 68
Branch analysis from position: 68
Branch analysis from position: 73
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 73
filename:       /in/PvE7Z
function name:  (null)
number of ops:  75
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              $15     'GLOBALS'
         14        SEND_REF                                                 $15
         15        DO_ICALL                                         $16     
         16        FETCH_DIM_R                                      ~17     $16, 'GLOBALS'
   13    17        FETCH_W                      global              $12     'GLOBALS'
         18        FETCH_DIM_W                                      $13     $12, 'next'
         19        ASSIGN_DIM                                       ~14     $13, 'next'
   14    20        OP_DATA                                                  ~17
   18    21        INIT_FCALL                                               'next'
         22        FETCH_CONSTANT                                   ~21     'GLOBALS'
         23        FETCH_W                      global              $20     'GLOBALS'
         24        FETCH_DIM_W                                      $22     $20, ~21
         25        FETCH_DIM_W                                      $23     $22, 'GLOBALS'
         26        SEND_REF                                                 $23
         27        DO_ICALL                                         $24     
         28        FETCH_DIM_R                                      ~25     !0, 'next'
         29        FETCH_DIM_R                                      ~26     $24, ~25
         30        ASSIGN_DIM                                       ~19     !0, 'GLOBALS'
         31        OP_DATA                                                  ~26
   21    32        INIT_FCALL                                               'next'
         33        FETCH_DIM_W                                      $29     !0, 'GLOBALS'
         34        SEND_REF                                                 $29
         35        DO_ICALL                                         $30     
         36        ASSIGN_DIM                                       ~28     !0, 'GLOBALS'
         37        OP_DATA                                                  $30
   23    38        FETCH_CONSTANT                                   ~33     'next'
         39        FETCH_R                      global              ~32     'GLOBALS'
         40        FETCH_DIM_R                                      ~34     ~32, ~33
         41        FETCH_DIM_R                                      ~35     ~34, 'next'
         42        INIT_DYNAMIC_CALL                                        ~35
         43        CHECK_FUNC_ARG                                           
         44        FETCH_FUNC_ARG               global              $36     'GLOBALS'
         45        FETCH_DIM_FUNC_ARG                               $37     $36, 'next'
         46        FETCH_DIM_FUNC_ARG                               $38     $37, 'GLOBALS'
         47        SEND_FUNC_ARG                                            $38
         48        DO_FCALL                                      0  $39     
   25    49        INIT_FCALL                                               'next'
         50        INIT_FCALL                                               'next'
         51        FETCH_DIM_W                                      $41     !0, 'next'
         52        SEND_REF                                                 $41
         53        DO_ICALL                                         $42     
         54        SEND_VAR_NO_REF                               0          $42
         55        DO_ICALL                                         $43     
   14    56        FETCH_DIM_W                                      $18     $11, ~14
   18    57        FETCH_DIM_W                                      $27     $18, ~19
   21    58        FETCH_DIM_W                                      $31     $27, ~28
   23    59        ASSIGN_DIM                                       ~40     $31, $39
   25    60        OP_DATA                                                  $43
    9    61        FETCH_W                      global              $8      'GLOBALS'
         62        ASSIGN_DIM                                       ~9      $8, 'next'
   25    63        OP_DATA                                                  ~40
    7    64        FETCH_W                      global              $7      'GLOBALS'
         65        ASSIGN                                                   $7, ~9
   28    66        FETCH_R                      global              ~45     'GLOBALS'
         67      > FE_RESET_R                                       $46     ~45, ->73
         68    > > FE_FETCH_R                                       ~47     $46, !1, ->73
         69    >   ASSIGN                                                   !2, ~47
   29    70        ECHO                                                     !2
   30    71        ECHO                                                     '++'
   28    72      > JMP                                                      ->68
         73    >   FE_FREE                                                  $46
   32    74      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.86 ms | 1400 KiB | 15 Q