3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arrayFirst = [ "index" => [ 'a' => '1', ], [ 'a' => '2', ] ]; $arraySecond = [ "index" => [ 'b' => '1', ], [ 'b' => '2', ] ]; var_export( array_map( function(...$items) { return array_merge(...$items); }, $arrayFirst, $arraySecond ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6SpI0
function name:  (null)
number of ops:  12
compiled vars:  !0 = $arrayFirst, !1 = $arraySecond
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   12     1        ASSIGN                                                   !1, <array>
   21     2        INIT_FCALL                                               'var_export'
   22     3        INIT_FCALL                                               'array_map'
   23     4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F6SpI0%3A23%240'
   25     5        SEND_VAL                                                 ~4
   26     6        SEND_VAR                                                 !0
   27     7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
   29    11      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F6SpI0%3A23%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6SpI0
function name:  {closure}
number of ops:  7
compiled vars:  !0 = $items
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   RECV_VARIADIC                                    !0      
   24     1        INIT_FCALL                                               'array_merge'
          2        SEND_UNPACK                                              !0
          3        CHECK_UNDEF_ARGS                                         
          4        DO_ICALL                                         $1      
          5      > RETURN                                                   $1
   25     6*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F6SpI0%3A23%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.49 ms | 1399 KiB | 19 Q