3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = ['type' => ['default', 'customer'], 'direction' => ['forward', 'backward']]; $newArray = call_user_func_array('array_map', array_merge(array(function () use ($array) { $values = func_get_args(); return array_combine(array_keys($array), $values); }), $array));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uWCjS
function name:  (null)
number of ops:  14
compiled vars:  !0 = $array, !1 = $newArray
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'array_map'
          2        INIT_FCALL                                               'array_merge'
          3        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FuWCjS%3A5%240'
          4        BIND_LEXICAL                                             ~3, !0
    8     5        INIT_ARRAY                                       ~4      ~3
          6        SEND_VAL                                                 ~4
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $5      
          9        SEND_ARRAY                                               $5
         10        CHECK_UNDEF_ARGS                                         
         11        DO_FCALL                                      0  $6      
    5    12        ASSIGN                                                   !1, $6
    8    13      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FuWCjS%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uWCjS
function name:  {closure}
number of ops:  12
compiled vars:  !0 = $array, !1 = $values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   BIND_STATIC                                              !0
    6     1        FUNC_GET_ARGS                                    ~2      
          2        ASSIGN                                                   !1, ~2
    7     3        INIT_FCALL                                               'array_combine'
          4        INIT_FCALL                                               'array_keys'
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        SEND_VAR                                                 $4
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $5      
         10      > RETURN                                                   $5
    8    11*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FuWCjS%3A5%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.57 ms | 1395 KiB | 21 Q