3v4l.org

run code in 500+ PHP versions simultaneously
<?php $arr1 = array ( 0 => array ( "id" => "123-456-000-000", "name" => "john" ), 1 => array ( "id" => "123-456-789-014", "name" => "james" ) ); $arr2 = array ( 0 => array ( "tin" => "123-456-000-000", "address" => "Japan" ), 1 => array ( "tin" => "123-456-789-014", "address" => "Spain" ) ); foreach ($arr2 as $key => $inner) { $arr1[$key]["address"] = $inner["address"]; } print_r($arr1);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 10
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/msWNs
function name:  (null)
number of ops:  15
compiled vars:  !0 = $arr1, !1 = $arr2, !2 = $inner, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   14     1        ASSIGN                                                   !1, <array>
   25     2      > FE_RESET_R                                       $6      !1, ->10
          3    > > FE_FETCH_R                                       ~7      $6, !2, ->10
          4    >   ASSIGN                                                   !3, ~7
   26     5        FETCH_DIM_R                                      ~11     !2, 'address'
          6        FETCH_DIM_W                                      $9      !0, !3
          7        ASSIGN_DIM                                               $9, 'address'
          8        OP_DATA                                                  ~11
   25     9      > JMP                                                      ->3
         10    >   FE_FREE                                                  $6
   29    11        INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.6 ms | 2165 KiB | 12 Q