3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.7 ms | 1392 KiB | 17 Q