3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Enter your code here, enjoy! $array = array(); $array[] = array("foo" => 111, "bar" => 444); $array[] = array("foo" => 222, "bar" => 555); $array[] = array("foo" => 333, "bar" => 777); $array2 = array(); $array2[] = array('foobar' => 888, 'barfoo'=>999); $array2[] = array('barfoo' => 999, 'barfoo'=>1010); $array2[] = array('barfoo' => 1111, 'barfoo'=>1212); foreach( $array as $key=>$value){ echo $key."\t=>\t".$value['foo']."..."."\n"; } $array = array_merge($array, $array2); foreach( $array as $key=>$value){ echo $key."\t=>\t".$value['foo']."...".$value['barfoo']."\n"; } //echo var_dump($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 24
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 24
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 24
2 jumps found. (Code = 77) Position 1 = 31, Position 2 = 42
Branch analysis from position: 31
2 jumps found. (Code = 78) Position 1 = 32, Position 2 = 42
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 42
Branch analysis from position: 24
filename:       /in/O2seG
function name:  (null)
number of ops:  44
compiled vars:  !0 = $array, !1 = $array2, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN_DIM                                               !0
          2        OP_DATA                                                  <array>
    6     3        ASSIGN_DIM                                               !0
          4        OP_DATA                                                  <array>
    7     5        ASSIGN_DIM                                               !0
          6        OP_DATA                                                  <array>
   10     7        ASSIGN                                                   !1, <array>
   11     8        ASSIGN_DIM                                               !1
          9        OP_DATA                                                  <array>
   12    10        ASSIGN_DIM                                               !1
         11        OP_DATA                                                  <array>
   13    12        ASSIGN_DIM                                               !1
         13        OP_DATA                                                  <array>
   16    14      > FE_RESET_R                                       $12     !0, ->24
         15    > > FE_FETCH_R                                       ~13     $12, !2, ->24
         16    >   ASSIGN                                                   !3, ~13
   17    17        CONCAT                                           ~15     !3, '%09%3D%3E%09'
         18        FETCH_DIM_R                                      ~16     !2, 'foo'
         19        CONCAT                                           ~17     ~15, ~16
         20        CONCAT                                           ~18     ~17, '...'
         21        CONCAT                                           ~19     ~18, '%0A'
         22        ECHO                                                     ~19
   16    23      > JMP                                                      ->15
         24    >   FE_FREE                                                  $12
   20    25        INIT_FCALL                                               'array_merge'
         26        SEND_VAR                                                 !0
         27        SEND_VAR                                                 !1
         28        DO_ICALL                                         $20     
         29        ASSIGN                                                   !0, $20
   23    30      > FE_RESET_R                                       $22     !0, ->42
         31    > > FE_FETCH_R                                       ~23     $22, !2, ->42
         32    >   ASSIGN                                                   !3, ~23
   24    33        CONCAT                                           ~25     !3, '%09%3D%3E%09'
         34        FETCH_DIM_R                                      ~26     !2, 'foo'
         35        CONCAT                                           ~27     ~25, ~26
         36        CONCAT                                           ~28     ~27, '...'
         37        FETCH_DIM_R                                      ~29     !2, 'barfoo'
         38        CONCAT                                           ~30     ~28, ~29
         39        CONCAT                                           ~31     ~30, '%0A'
         40        ECHO                                                     ~31
   23    41      > JMP                                                      ->31
         42    >   FE_FREE                                                  $22
   28    43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.1 ms | 1400 KiB | 15 Q