3v4l.org

run code in 300+ PHP versions simultaneously
<?php function stripslashes_array(&$arr) { 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; } } } stripslashes_array('Yousef\\\'s'); stripslashes_array('\"PHP.net\"'); stripslashes_array('user\\\'s'); stripslashes_array('user\\\'s'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pWOn4
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   INIT_FCALL                                               'stripslashes_array'
          1        SEND_VAL_EX                                              'Yousef%5C%27s'
          2        DO_FCALL                                      0          
   22     3        INIT_FCALL                                               'stripslashes_array'
          4        SEND_VAL_EX                                              '%5C%22PHP.net%5C%22'
          5        DO_FCALL                                      0          
   23     6        INIT_FCALL                                               'stripslashes_array'
          7        SEND_VAL_EX                                              'user%5C%27s'
          8        DO_FCALL                                      0          
   24     9        INIT_FCALL                                               'stripslashes_array'
         10        SEND_VAL_EX                                              'user%5C%27s'
         11        DO_FCALL                                      0          
   25    12      > RETURN                                                   1

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

End of function stripslashes_array

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.74 ms | 1403 KiB | 19 Q