3v4l.org

run code in 300+ PHP versions simultaneously
<?php $multidim_array = ['a' => [' \one ', ['b' => 'two\\', [['c' => 'thr\ee']]]]]; var_export($multidim_array); echo "\n"; $func = 'stripslashes'; if (function_exists($func)) { array_walk_recursive($multidim_array, function(&$v)use($func){$v = $func($v);}); var_export($multidim_array); } else { echo "not callable"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 20
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cLbE0
function name:  (null)
number of ops:  22
compiled vars:  !0 = $multidim_array, !1 = $func
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'var_export'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    4     4        ECHO                                                     '%0A'
    5     5        ASSIGN                                                   !1, 'stripslashes'
    6     6        INIT_FCALL                                               'function_exists'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9      > JMPZ                                                     $5, ->20
    7    10    >   INIT_FCALL                                               'array_walk_recursive'
         11        SEND_REF                                                 !0
         12        DECLARE_LAMBDA_FUNCTION                          ~6      [0]
         13        BIND_LEXICAL                                             ~6, !1
         14        SEND_VAL                                                 ~6
         15        DO_ICALL                                                 
    8    16        INIT_FCALL                                               'var_export'
         17        SEND_VAR                                                 !0
         18        DO_ICALL                                                 
    6    19      > JMP                                                      ->21
   10    20    >   ECHO                                                     'not+callable'
   11    21    > > RETURN                                                   1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cLbE0
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $v, !1 = $func
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
          1        BIND_STATIC                                              !1
          2        INIT_DYNAMIC_CALL                                        !1
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $2      
          5        ASSIGN                                                   !0, $2
          6      > RETURN                                                   null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.29 ms | 1013 KiB | 16 Q