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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.35 ms | 1400 KiB | 21 Q