3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array1 = Array ( '0' => Array ( 'var_id' => 43 ), '1' => Array ( 'var_id' => 25 ) ); $array2 = Array ( '0' => Array ( 'name' => Tortoise ), '1' => Array ( 'name' => Black ) ); $array3 = Array ( '0' => Array ( 'id' => 1907 ), '1' => Array ( 'id' => 1908 ) ); $final = array(); foreach(array($array1, $array2, $array3) AS $array) { foreach($array AS $key => $value) { $final[$key] = $value; } } print_r($final);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 23
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 23
Branch analysis from position: 15
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 21
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 21
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/RKOPn
function name:  (null)
number of ops:  28
compiled vars:  !0 = $array1, !1 = $array2, !2 = $array3, !3 = $final, !4 = $array, !5 = $value, !6 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   12     1        FETCH_CONSTANT                                   ~8      'Tortoise'
          2        INIT_ARRAY                                       ~9      ~8, 'name'
          3        INIT_ARRAY                                       ~10     ~9, 0
   15     4        FETCH_CONSTANT                                   ~11     'Black'
          5        INIT_ARRAY                                       ~12     ~11, 'name'
          6        ADD_ARRAY_ELEMENT                                ~10     ~12, 1
   10     7        ASSIGN                                                   !1, ~10
   18     8        ASSIGN                                                   !2, <array>
   27     9        ASSIGN                                                   !3, <array>
   28    10        INIT_ARRAY                                       ~16     !0
         11        ADD_ARRAY_ELEMENT                                ~16     !1
         12        ADD_ARRAY_ELEMENT                                ~16     !2
         13      > FE_RESET_R                                       $17     ~16, ->23
         14    > > FE_FETCH_R                                               $17, !4, ->23
   29    15    > > FE_RESET_R                                       $18     !4, ->21
         16    > > FE_FETCH_R                                       ~19     $18, !5, ->21
         17    >   ASSIGN                                                   !6, ~19
   30    18        ASSIGN_DIM                                               !3, !6
         19        OP_DATA                                                  !5
   29    20      > JMP                                                      ->16
         21    >   FE_FREE                                                  $18
   28    22      > JMP                                                      ->14
         23    >   FE_FREE                                                  $17
   34    24        INIT_FCALL                                               'print_r'
         25        SEND_VAR                                                 !3
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.36 ms | 1396 KiB | 15 Q