3v4l.org

run code in 300+ PHP versions simultaneously
<?php function stripslashes_array() { $arr=array(&$ar); foreach ($arr as $k => &$v) { $nk = stripslashes($k); if (!is_array($v)) { $arr[$nk] = stripslashes($v); echo $arr[$nk]; } } } $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/5HgkH
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
-------------------------------------------------------------------------------------
   16     0  E >   ASSIGN                                                   !0, 'Yousef%5C%27s'
   17     1        ASSIGN                                                   !1, '%5C%22PHP.net%5C%22'
   18     2        ASSIGN                                                   !2, 'user%5C%27s'
   19     3        ASSIGN                                                   !3, 'Yousef%5C%27s'
   20     4        INIT_FCALL                                               'stripslashes_array'
          5        SEND_VAR                                                 !0
          6        DO_FCALL                                      0          
   21     7        INIT_FCALL                                               'stripslashes_array'
          8        SEND_VAR                                                 !1
          9        DO_FCALL                                      0          
   22    10        INIT_FCALL                                               'stripslashes_array'
         11        SEND_VAR                                                 !2
         12        DO_FCALL                                      0          
   23    13        INIT_FCALL                                               'stripslashes_array'
         14        SEND_VAR                                                 !3
         15        DO_FCALL                                      0          
   24    16      > RETURN                                                   1

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

End of function stripslashes_array

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.27 ms | 1403 KiB | 19 Q