3v4l.org

run code in 300+ PHP versions simultaneously
<?php // 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); print_r($process); // 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 = 3, Position 2 = 58
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 49
Branch analysis from position: 49
2 jumps found. (Code = 44) Position 1 = 57, Position 2 = 16
Branch analysis from position: 57
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 48
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 48
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 38
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 47
Branch analysis from position: 47
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 38
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 48
2 jumps found. (Code = 44) Position 1 = 57, Position 2 = 16
Branch analysis from position: 57
Branch analysis from position: 16
Branch analysis from position: 48
Branch analysis from position: 58
filename:       /in/F6mdI
function name:  (null)
number of ops:  59
compiled vars:  !0 = $process, !1 = $val, !2 = $v, !3 = $k, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'get_magic_quotes_gpc'
          1        DO_FCALL                                      0  $5      
          2      > JMPZ                                                     $5, ->58
    6     3    >   FETCH_W                      global              $6      '_GET'
          4        INIT_ARRAY                                       ~7      $6
          5        FETCH_W                      global              $8      '_POST'
          6        ADD_ARRAY_ELEMENT                                ~7      $8
          7        FETCH_W                      global              $9      '_COOKIE'
          8        ADD_ARRAY_ELEMENT                                ~7      $9
          9        FETCH_W                      global              $10     '_REQUEST'
         10        ADD_ARRAY_ELEMENT                                ~7      $10
         11        ASSIGN                                                   !0, ~7
    7    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                                 
   10    15      > JMP                                                      ->49
   12    16    > > FE_RESET_R                                       $13     !1, ->48
         17    > > FE_FETCH_R                                       ~14     $13, !2, ->48
         18    >   ASSIGN                                                   !3, ~14
   13    19        FETCH_DIM_UNSET                                  $16     !0, !4
         20        UNSET_DIM                                                $16, !3
   14    21        TYPE_CHECK                                  128          !2
         22      > JMPZ                                                     ~17, ->38
   15    23    >   INIT_FCALL                                               'stripslashes'
         24        SEND_VAR                                                 !3
         25        DO_ICALL                                         $19     
         26        FETCH_DIM_W                                      $18     !0, !4
         27        ASSIGN_DIM                                               $18, $19
         28        OP_DATA                                                  !2
   16    29        INIT_FCALL                                               'stripslashes'
         30        SEND_VAR                                                 !3
         31        DO_ICALL                                         $23     
         32        FETCH_DIM_W                                      $22     !0, !4
         33        FETCH_DIM_W                                      $24     $22, $23
         34        MAKE_REF                                         $25     $24
         35        FETCH_DIM_W                                      $21     !0
         36        ASSIGN_REF                                               $21, $25
         37      > JMP                                                      ->47
   18    38    >   INIT_FCALL                                               'stripslashes'
         39        SEND_VAR                                                 !3
         40        DO_ICALL                                         $28     
         41        INIT_FCALL                                               'stripslashes'
         42        SEND_VAR                                                 !2
         43        DO_ICALL                                         $30     
         44        FETCH_DIM_W                                      $27     !0, !4
         45        ASSIGN_DIM                                               $27, $28
         46        OP_DATA                                                  $30
   12    47    > > JMP                                                      ->17
         48    >   FE_FREE                                                  $13
   10    49    >   INIT_FCALL_BY_NAME                                       'each'
         50        SEND_VAR_EX                                              !0
         51        DO_FCALL                                      0  $31     
         52        FETCH_LIST_R                                     $32     $31, 0
         53        ASSIGN                                                   !4, $32
         54        FETCH_LIST_R                                     $34     $31, 1
         55        ASSIGN                                                   !1, $34
         56      > JMPNZ                                                    $31, ->16
   23    57    >   UNSET_CV                                                 !0
   24    58    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.13 ms | 1400 KiB | 17 Q