3v4l.org

run code in 300+ PHP versions simultaneously
<?php $multidim_array = [['101' => "found: %s\n", ['bubblegum' => "found: %s\n", [['123-45-6789' => "found: %s\n"]]]]]; $func = 'printf'; if (function_exists($func)) { array_walk_recursive($multidim_array, $func); } else { echo "um... I'm not calling $func"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qLvWL
function name:  (null)
number of ops:  15
compiled vars:  !0 = $multidim_array, !1 = $func
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 'printf'
    5     2        INIT_FCALL                                               'function_exists'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $4      
          5      > JMPZ                                                     $4, ->11
    6     6    >   INIT_FCALL                                               'array_walk_recursive'
          7        SEND_REF                                                 !0
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
    5    10      > JMP                                                      ->14
    8    11    >   NOP                                                      
         12        FAST_CONCAT                                      ~6      'um...+I%27m+not+calling+', !1
         13        ECHO                                                     ~6
    9    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.31 ms | 1010 KiB | 15 Q