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); foreach( $array as $key=>$value){ echo $key."\t=>\t".$value['foo']."...".$value['asdf']."\n"; } //$array[0] = array_merge[$array, $array2]; //echo var_dump($array);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 24
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 24
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/9Qsad
function name:  (null)
number of ops:  26
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>
   15    12      > FE_RESET_R                                       $11     !0, ->24
         13    > > FE_FETCH_R                                       ~12     $11, !2, ->24
         14    >   ASSIGN                                                   !3, ~12
   16    15        CONCAT                                           ~14     !3, '%09%3D%3E%09'
         16        FETCH_DIM_R                                      ~15     !2, 'foo'
         17        CONCAT                                           ~16     ~14, ~15
         18        CONCAT                                           ~17     ~16, '...'
         19        FETCH_DIM_R                                      ~18     !2, 'asdf'
         20        CONCAT                                           ~19     ~17, ~18
         21        CONCAT                                           ~20     ~19, '%0A'
         22        ECHO                                                     ~20
   15    23      > JMP                                                      ->13
         24    >   FE_FREE                                                  $11
   23    25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.45 ms | 1394 KiB | 13 Q