3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ 'foo' => 'one', 'bar' => [ 'boo' => 'two', 'foo' => 'three', 'loo' => [ 'foo' => 'four', ], ], 'goo' => [ 'foo' => 'five', ] ]; var_export( array_walk_recursive( $array, function($value, $key, $matchingKey){ return (strcasecmp($key, $matchingKey) == 0)? true : false; }, 'fighters' //'foo' ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XA9uZ
function name:  (null)
number of ops:  11
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   18     1        INIT_FCALL                                               'var_export'
   19     2        INIT_FCALL                                               'array_walk_recursive'
   20     3        SEND_REF                                                 !0
   21     4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FXA9uZ%3A21%240'
   23     5        SEND_VAL                                                 ~2
   24     6        SEND_VAL                                                 'fighters'
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
   26    10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FXA9uZ%3A21%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XA9uZ
function name:  {closure}
number of ops:  14
compiled vars:  !0 = $value, !1 = $key, !2 = $matchingKey
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
   22     3        INIT_FCALL                                               'strcasecmp'
          4        SEND_VAR                                                 !1
          5        SEND_VAR                                                 !2
          6        DO_ICALL                                         $3      
          7        IS_EQUAL                                                 $3, 0
          8      > JMPZ                                                     ~4, ->11
          9    >   QM_ASSIGN                                        ~5      <true>
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~5      <false>
         12    > > RETURN                                                   ~5
   23    13*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FXA9uZ%3A21%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.23 ms | 1396 KiB | 19 Q