3v4l.org

run code in 300+ PHP versions simultaneously
<?php $new_items = array_map($items, function ($item) { return array_map($item, function ($key_values) { return array_reduce($key_values, function ($seed, $value, $key) { $seed[$key] = $value; }); }); });
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2ATu8
function name:  (null)
number of ops:  7
compiled vars:  !0 = $new_items, !1 = $items
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'array_map'
          1        SEND_VAR                                                 !1
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F2ATu8%3A2%240'
    8     3        SEND_VAL                                                 ~2
          4        DO_ICALL                                         $3      
    2     5        ASSIGN                                                   !0, $3
    8     6      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F2ATu8%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2ATu8
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL                                               'array_map'
          2        SEND_VAR                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F2ATu8%3A3%241'
    7     4        SEND_VAL                                                 ~1
          5        DO_ICALL                                         $2      
          6      > RETURN                                                   $2
    8     7*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F2ATu8%3A2%240

Function %00%7Bclosure%7D%2Fin%2F2ATu8%3A3%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2ATu8
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $key_values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'array_reduce'
          2        SEND_VAR                                                 !0
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F2ATu8%3A4%242'
    6     4        SEND_VAL                                                 ~1
          5        DO_ICALL                                         $2      
          6      > RETURN                                                   $2
    7     7*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F2ATu8%3A3%241

Function %00%7Bclosure%7D%2Fin%2F2ATu8%3A4%242:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2ATu8
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $seed, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
    5     3        ASSIGN_DIM                                               !0, !2
          4        OP_DATA                                                  !1
    6     5      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F2ATu8%3A4%242

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.55 ms | 945 KiB | 18 Q