3v4l.org

run code in 300+ PHP versions simultaneously
<?php class a{ function stripslashes_deep($value) { $value = is_array($value) ? array_map('stripslashes_deep', $value) : stripslashes($value); return $value; } } $t = new a(); $array = array("f\\'oo", "b\\'ar", array("fo\\'o", "b\\'ar")); $array = $t->stripslashes_deep($array); print_r($array); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6RKG3
function name:  (null)
number of ops:  12
compiled vars:  !0 = $t, !1 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $2      'a'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   16     3        ASSIGN                                                   !1, <array>
   17     4        INIT_METHOD_CALL                                         !0, 'stripslashes_deep'
          5        SEND_VAR_EX                                              !1
          6        DO_FCALL                                      0  $6      
          7        ASSIGN                                                   !1, $6
   20     8        INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                                 
   22    11      > RETURN                                                   1

Class a:
Function stripslashes_deep:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 9
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6RKG3
function name:  stripslashes_deep
number of ops:  16
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        TYPE_CHECK                                  128          !0
          2      > JMPZ                                                     ~1, ->9
    6     3    >   INIT_FCALL                                               'array_map'
          4        SEND_VAL                                                 'stripslashes_deep'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $2      
          7        QM_ASSIGN                                        ~3      $2
          8      > JMP                                                      ->13
    7     9    >   INIT_FCALL                                               'stripslashes'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $4      
         12        QM_ASSIGN                                        ~3      $4
    5    13    >   ASSIGN                                                   !0, ~3
    9    14      > RETURN                                                   !0
   10    15*     > RETURN                                                   null

End of function stripslashes_deep

End of class a.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.97 ms | 1388 KiB | 19 Q