3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.16 ms | 1400 KiB | 15 Q