3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = [ ["Camera1" => "192.168.101.71"], ["Camera2" => "192.168.101.72"], ["Camera3" => "192.168.101.74"], ]; $array2 = [ ["Camera1" => "VT"], ["Camera2" => "UB"], ["Camera3" => "FX"] ]; array_walk_recursive( $array1, fn(&$v) => $v = ['ip' => $v] ); array_walk_recursive( $array2, fn(&$v) => $v = ['name' => $v] ); var_export( array_merge_recursive( ...$array1, ...$array2 ) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3esNT
function name:  (null)
number of ops:  21
compiled vars:  !0 = $array1, !1 = $array2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    9     1        ASSIGN                                                   !1, <array>
   15     2        INIT_FCALL                                               'array_walk_recursive'
   16     3        SEND_REF                                                 !0
   17     4        DECLARE_LAMBDA_FUNCTION                          ~4      [0]
   18     5        SEND_VAL                                                 ~4
   15     6        DO_ICALL                                                 
   20     7        INIT_FCALL                                               'array_walk_recursive'
   21     8        SEND_REF                                                 !1
   22     9        DECLARE_LAMBDA_FUNCTION                          ~6      [1]
   23    10        SEND_VAL                                                 ~6
   20    11        DO_ICALL                                                 
   25    12        INIT_FCALL                                               'var_export'
   26    13        INIT_FCALL                                               'array_merge_recursive'
   27    14        SEND_UNPACK                                              !0
   28    15        SEND_UNPACK                                              !1
         16        CHECK_UNDEF_ARGS                                         
   26    17        DO_ICALL                                         $8      
   28    18        SEND_VAR                                                 $8
   25    19        DO_ICALL                                                 
   30    20      > 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/3esNT
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
          1        INIT_ARRAY                                       ~1      !0, 'ip'
          2        ASSIGN                                           ~2      !0, ~1
          3      > RETURN                                                   ~2
   18     4*     > RETURN                                                   null

End of Dynamic Function 0

Dynamic Function 1
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3esNT
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   RECV                                             !0      
          1        INIT_ARRAY                                       ~1      !0, 'name'
          2        ASSIGN                                           ~2      !0, ~1
          3      > RETURN                                                   ~2
   23     4*     > RETURN                                                   null

End of Dynamic Function 1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.75 ms | 1013 KiB | 16 Q