3v4l.org

run code in 500+ 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                              ~4      [0]
   25     5        SEND_VAL                                                     ~4
   26     6        SEND_VAR                                                     !0
   27     7        SEND_VAR                                                     !1
   22     8        DO_ICALL                                             $5      
   27     9        SEND_VAR                                                     $5
   21    10        DO_ICALL                                                     
   29    11      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6SpI0
function name:  {closure:/in/6SpI0:23}
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 Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
245.03 ms | 1915 KiB | 16 Q