3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.14 ms | 1400 KiB | 15 Q