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 (!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); ?> function stripslashes_array(&$ar) { $arr=array(); foreach ($arr as $k => &$v) { $nk = stripslashes($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/rcCYv
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   ASSIGN                                                   !0, 'Yousef%5C%27s'
   18     1        ASSIGN                                                   !1, '%5C%22PHP.net%5C%22'
   19     2        ASSIGN                                                   !2, 'user%5C%27s'
   20     3        ASSIGN                                                   !3, 'Yousef%5C%27s'
   21     4        INIT_FCALL                                               'stripslashes_array'
          5        SEND_REF                                                 !0
          6        DO_FCALL                                      0          
   22     7        INIT_FCALL                                               'stripslashes_array'
          8        SEND_REF                                                 !1
          9        DO_FCALL                                      0          
   23    10        INIT_FCALL                                               'stripslashes_array'
         11        SEND_REF                                                 !2
         12        DO_FCALL                                      0          
   24    13        INIT_FCALL                                               'stripslashes_array'
         14        SEND_REF                                                 !3
         15        DO_FCALL                                      0          
   26    16        ECHO                                                     '%0A+++++function+stripslashes_array%28%26%24ar%29+%7B%0A%24arr%3Darray%28%29%3B%0A+++++++++foreach+%28%24arr+as+%24k+%3D%3E+%26%24v%29+%7B%0A+++++++++++++%24nk+%3D+stripslashes%28%24k%29%3B%0A++++++++++++++++++++++++++if+%28%21is_array%28%24v%29%29+%7B%0A+++++++++++++++++stripslashes_array%28%24v%29%3B%0A+++++++++++++%7D+else+%7B%0A+++++++++++++++++%24arr%5B%24nk%5D+%3D+stripslashes%28%24v%29%3B%0A+++++++++++++echo+%24v%3B%0A%7D%0A+++++++++%7D%0A+++++%0A+%7D%0A%24a%3D%27Yousef%5C%5C%5C%27s%27%3B%0A%24b%3D%27%5C%22PHP.net%5C%22%27%3B%0A%24c%3D%27user%5C%5C%5C%27s%27%3B++++%0A%24d%3D%27Yousef%5C%5C%5C%27s%27%3B%0Astripslashes_array%28%24a%29%3B%0A+++++stripslashes_array%28%24b%29%3B%0A+++++stripslashes_array%28%24c%29%3B%0A+++++stripslashes_array%28%24d%29%3B%0A+%3F%3E'
   48    17      > RETURN                                                   1

Function stripslashes_array:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 3, Position 2 = 23
Branch analysis from position: 3
2 jumps found. (Code = 126) Position 1 = 4, Position 2 = 23
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/rcCYv
function name:  stripslashes_array
number of ops:  25
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, ->23
          3    > > FE_FETCH_RW                                      ~7      $6, !2, ->23
          4    >   ASSIGN                                                   !3, ~7
    7     5        INIT_FCALL                                               'stripslashes'
          6        SEND_VAR                                                 !3
          7        DO_ICALL                                         $9      
          8        ASSIGN                                                   !4, $9
    8     9        TYPE_CHECK                                  128  ~11     !2
         10        BOOL_NOT                                         ~12     ~11
         11      > JMPZ                                                     ~12, ->16
    9    12    >   INIT_FCALL_BY_NAME                                       'stripslashes_array'
         13        SEND_VAR_EX                                              !2
         14        DO_FCALL                                      0          
         15      > JMP                                                      ->22
   11    16    >   INIT_FCALL                                               'stripslashes'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                         $15     
         19        ASSIGN_DIM                                               !1, !4
         20        OP_DATA                                                  $15
   12    21        ECHO                                                     !2
    6    22    > > JMP                                                      ->3
         23    >   FE_FREE                                                  $6
   16    24      > RETURN                                                   null

End of function stripslashes_array

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.23 ms | 1403 KiB | 19 Q