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); //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
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
filename:       /in/qLP9j
function name:  (null)
number of ops:  31
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
   24    30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.58 ms | 1396 KiB | 15 Q