3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_POST['abe'] = "love"; print_r($_REQUEST); // Er magic_quotes_gpc aktiv? if(get_magic_quotes_gpc()) { // Vi gemmer vores HTTP variabler som referencer, altså // er dette en reference til den aktuelle variabel $process = array(&$_GET, &$_POST, &$_COOKIE, &$_REQUEST); // Vi gemmer hver enkelt references key og value, for at // behandle dem i en løkke while(list($key, $val) = each($process)) { // foreach($val as $k => $v) { unset($process[$key][$k]); if(is_array($v)) { $process[$key][stripslashes($k)] = $v; $process[] = &$process[$key][stripslashes($k)]; } else { $process[$key][stripslashes($k)] = stripslashes($v); } } } unset($process); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 62
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 53
Branch analysis from position: 53
2 jumps found. (Code = 44) Position 1 = 61, Position 2 = 20
Branch analysis from position: 61
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
2 jumps found. (Code = 77) Position 1 = 21, Position 2 = 52
Branch analysis from position: 21
2 jumps found. (Code = 78) Position 1 = 22, Position 2 = 52
Branch analysis from position: 22
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 42
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 51
Branch analysis from position: 51
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 42
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 52
2 jumps found. (Code = 44) Position 1 = 61, Position 2 = 20
Branch analysis from position: 61
Branch analysis from position: 20
Branch analysis from position: 52
Branch analysis from position: 62
filename:       /in/uX6g9
function name:  (null)
number of ops:  63
compiled vars:  !0 = $process, !1 = $val, !2 = $v, !3 = $k, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   FETCH_W                      global              $5      '_POST'
          1        ASSIGN_DIM                                               $5, 'abe'
          2        OP_DATA                                                  'love'
    3     3        INIT_FCALL                                               'print_r'
          4        FETCH_R                      global              ~7      '_REQUEST'
          5        SEND_VAL                                                 ~7
          6        DO_ICALL                                                 
    5     7        INIT_FCALL_BY_NAME                                       'get_magic_quotes_gpc'
          8        DO_FCALL                                      0  $9      
          9      > JMPZ                                                     $9, ->62
    8    10    >   FETCH_W                      global              $10     '_GET'
         11        INIT_ARRAY                                       ~11     $10
         12        FETCH_W                      global              $12     '_POST'
         13        ADD_ARRAY_ELEMENT                                ~11     $12
         14        FETCH_W                      global              $13     '_COOKIE'
         15        ADD_ARRAY_ELEMENT                                ~11     $13
         16        FETCH_W                      global              $14     '_REQUEST'
         17        ADD_ARRAY_ELEMENT                                ~11     $14
         18        ASSIGN                                                   !0, ~11
   11    19      > JMP                                                      ->53
   13    20    > > FE_RESET_R                                       $16     !1, ->52
         21    > > FE_FETCH_R                                       ~17     $16, !2, ->52
         22    >   ASSIGN                                                   !3, ~17
   14    23        FETCH_DIM_UNSET                                  $19     !0, !4
         24        UNSET_DIM                                                $19, !3
   15    25        TYPE_CHECK                                  128          !2
         26      > JMPZ                                                     ~20, ->42
   16    27    >   INIT_FCALL                                               'stripslashes'
         28        SEND_VAR                                                 !3
         29        DO_ICALL                                         $22     
         30        FETCH_DIM_W                                      $21     !0, !4
         31        ASSIGN_DIM                                               $21, $22
         32        OP_DATA                                                  !2
   17    33        INIT_FCALL                                               'stripslashes'
         34        SEND_VAR                                                 !3
         35        DO_ICALL                                         $26     
         36        FETCH_DIM_W                                      $25     !0, !4
         37        FETCH_DIM_W                                      $27     $25, $26
         38        MAKE_REF                                         $28     $27
         39        FETCH_DIM_W                                      $24     !0
         40        ASSIGN_REF                                               $24, $28
         41      > JMP                                                      ->51
   19    42    >   INIT_FCALL                                               'stripslashes'
         43        SEND_VAR                                                 !3
         44        DO_ICALL                                         $31     
         45        INIT_FCALL                                               'stripslashes'
         46        SEND_VAR                                                 !2
         47        DO_ICALL                                         $33     
         48        FETCH_DIM_W                                      $30     !0, !4
         49        ASSIGN_DIM                                               $30, $31
         50        OP_DATA                                                  $33
   13    51    > > JMP                                                      ->21
         52    >   FE_FREE                                                  $16
   11    53    >   INIT_FCALL_BY_NAME                                       'each'
         54        SEND_VAR_EX                                              !0
         55        DO_FCALL                                      0  $34     
         56        FETCH_LIST_R                                     $35     $34, 0
         57        ASSIGN                                                   !4, $35
         58        FETCH_LIST_R                                     $37     $34, 1
         59        ASSIGN                                                   !1, $37
         60      > JMPNZ                                                    $34, ->20
   24    61    >   UNSET_CV                                                 !0
   25    62    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.98 ms | 1392 KiB | 17 Q