3v4l.org

run code in 300+ PHP versions simultaneously
<?php function stripslashes_array(&$ar) { $arr=array(); foreach ($arr as $k => &$v) { $nk = stripslashes($k); if ($nk != $k) { $arr[$nk] = &$v; unset($arr[$k]); } if (is_array($v)) { stripslashes_array($v); } else { $arr[$nk] = stripslashes($v); echo $v; } } } $a='Yousef\\\'s'; $b='\"PHP.net\"'; $c='user\\\'s'; $d='Yousef\\\'s'; stripslashes_array($a); stripslashes_array($b); stripslashes_array($c); stripslashes_array($d); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kdI7A
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   ASSIGN                                                   !0, 'Yousef%5C%27s'
   22     1        ASSIGN                                                   !1, '%5C%22PHP.net%5C%22'
   23     2        ASSIGN                                                   !2, 'user%5C%27s'
   24     3        ASSIGN                                                   !3, 'Yousef%5C%27s'
   25     4        INIT_FCALL                                               'stripslashes_array'
          5        SEND_REF                                                 !0
          6        DO_FCALL                                      0          
   26     7        INIT_FCALL                                               'stripslashes_array'
          8        SEND_REF                                                 !1
          9        DO_FCALL                                      0          
   27    10        INIT_FCALL                                               'stripslashes_array'
         11        SEND_REF                                                 !2
         12        DO_FCALL                                      0          
   28    13        INIT_FCALL                                               'stripslashes_array'
         14        SEND_REF                                                 !3
         15        DO_FCALL                                      0          
   29    16      > RETURN                                                   1

Function stripslashes_array:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 3, Position 2 = 27
Branch analysis from position: 3
2 jumps found. (Code = 126) Position 1 = 4, Position 2 = 27
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 20
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 14
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/kdI7A
function name:  stripslashes_array
number of ops:  29
compiled vars:  !0 = $ar, !1 = $arr, !2 = $v, !3 = $k, !4 = $nk
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        ASSIGN                                                   !1, <array>
    6     2      > FE_RESET_RW                                      $6      !1, ->27
          3    > > FE_FETCH_RW                                      ~7      $6, !2, ->27
          4    >   ASSIGN                                                   !3, ~7
    7     5        INIT_FCALL                                               'stripslashes'
          6        SEND_VAR                                                 !3
          7        DO_ICALL                                         $9      
          8        ASSIGN                                                   !4, $9
    8     9        IS_NOT_EQUAL                                             !4, !3
         10      > JMPZ                                                     ~11, ->14
    9    11    >   FETCH_DIM_W                                      $12     !1, !4
         12        ASSIGN_REF                                               $12, !2
   10    13        UNSET_DIM                                                !1, !3
   12    14    >   TYPE_CHECK                                  128          !2
         15      > JMPZ                                                     ~14, ->20
   13    16    >   INIT_FCALL_BY_NAME                                       'stripslashes_array'
         17        SEND_VAR_EX                                              !2
         18        DO_FCALL                                      0          
         19      > JMP                                                      ->26
   15    20    >   INIT_FCALL                                               'stripslashes'
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                         $17     
         23        ASSIGN_DIM                                               !1, !4
         24        OP_DATA                                                  $17
   16    25        ECHO                                                     !2
    6    26    > > JMP                                                      ->3
         27    >   FE_FREE                                                  $6
   20    28      > RETURN                                                   null

End of function stripslashes_array

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.09 ms | 1403 KiB | 19 Q