3v4l.org

run code in 300+ PHP versions simultaneously
<?php $Aarray1 = Array ( "0" => "Daughter", "1" => "Daughter", "2" => "Son" ); $Aarray2 = Array ( "0" => "Nitu", "1" => "ritu", "2" => "ramesh" ); foreach($Aarray1 as $key=>$val) { $new_array[$key]["relation"] = $val; $new_array[$key]["name"] = $Aarray2[$key]; } print_r($new_array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 13
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 13
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/HgRf4
function name:  (null)
number of ops:  18
compiled vars:  !0 = $Aarray1, !1 = $Aarray2, !2 = $val, !3 = $key, !4 = $new_array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
   10     1        ASSIGN                                                   !1, <array>
   17     2      > FE_RESET_R                                       $7      !0, ->13
          3    > > FE_FETCH_R                                       ~8      $7, !2, ->13
          4    >   ASSIGN                                                   !3, ~8
   19     5        FETCH_DIM_W                                      $10     !4, !3
          6        ASSIGN_DIM                                               $10, 'relation'
          7        OP_DATA                                                  !2
   20     8        FETCH_DIM_R                                      ~14     !1, !3
          9        FETCH_DIM_W                                      $12     !4, !3
         10        ASSIGN_DIM                                               $12, 'name'
         11        OP_DATA                                                  ~14
   17    12      > JMP                                                      ->3
         13    >   FE_FREE                                                  $7
   22    14        INIT_FCALL                                               'print_r'
         15        SEND_VAR                                                 !4
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140 ms | 999 KiB | 14 Q