3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a[123] = array(); $a[123][] = array('a' => 'abc', 'b' => 'def'); $a[123][] = array('a' => '123', 'b' => '456'); foreach($a as $key => $val){ print $key; print $val; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/UY9ko
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $val, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN_DIM                                               !0, 123
          2        OP_DATA                                                  <array>
    7     3        FETCH_DIM_W                                      $5      !0, 123
          4        ASSIGN_DIM                                               $5
          5        OP_DATA                                                  <array>
    8     6        FETCH_DIM_W                                      $7      !0, 123
          7        ASSIGN_DIM                                               $7
          8        OP_DATA                                                  <array>
   10     9      > FE_RESET_R                                       $9      !0, ->15
         10    > > FE_FETCH_R                                       ~10     $9, !1, ->15
         11    >   ASSIGN                                                   !2, ~10
   11    12        ECHO                                                     !2
   12    13        ECHO                                                     !1
   10    14      > JMP                                                      ->10
         15    >   FE_FREE                                                  $9
   13    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.17 ms | 1393 KiB | 13 Q