3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = array ( 'bathroom' => array ( 'name' => 'Bathroom', 'things' => array ( 0 => array ( 'name' => 'ChevalMirrow', 'cubic' => .14, 'quantity' => 1 ), 1 => array ( 'name' => 'Carton/Wine', 'cubic' => .07, 'quantity' => 1 ), 2 => array ( 'name' => 'Carton/picture', 'cubic' => .07, 'quantity' => 1 ) ) ) ); foreach ($array as $key => $value) { echo "$key:<br>\n"; echo " name: {$value['name']}<br>\n"; foreach ($value['things'] as $t => $thing) { echo "\tthing $t:<br>\n"; foreach ($thing as $name => $val) { echo "\t $name: $val<br>\n"; } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 34
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 34
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 32
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 32
Branch analysis from position: 15
2 jumps found. (Code = 77) Position 1 = 21, Position 2 = 30
Branch analysis from position: 21
2 jumps found. (Code = 78) Position 1 = 22, Position 2 = 30
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 30
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 32
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
filename:       /in/P9HEQ
function name:  (null)
number of ops:  36
compiled vars:  !0 = $array, !1 = $value, !2 = $key, !3 = $thing, !4 = $t, !5 = $val, !6 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   30     1      > FE_RESET_R                                       $8      !0, ->34
          2    > > FE_FETCH_R                                       ~9      $8, !1, ->34
          3    >   ASSIGN                                                   !2, ~9
   31     4        NOP                                                      
          5        FAST_CONCAT                                      ~11     !2, '%3A%3Cbr%3E%0A'
          6        ECHO                                                     ~11
   32     7        ROPE_INIT                                     3  ~14     '++++name%3A+'
          8        FETCH_DIM_R                                      ~12     !1, 'name'
          9        ROPE_ADD                                      1  ~14     ~14, ~12
         10        ROPE_END                                      2  ~13     ~14, '%3Cbr%3E%0A'
         11        ECHO                                                     ~13
   33    12        FETCH_DIM_R                                      ~16     !1, 'things'
         13      > FE_RESET_R                                       $17     ~16, ->32
         14    > > FE_FETCH_R                                       ~18     $17, !3, ->32
         15    >   ASSIGN                                                   !4, ~18
   34    16        ROPE_INIT                                     3  ~21     '%09thing+'
         17        ROPE_ADD                                      1  ~21     ~21, !4
         18        ROPE_END                                      2  ~20     ~21, '%3A%3Cbr%3E%0A'
         19        ECHO                                                     ~20
   35    20      > FE_RESET_R                                       $23     !3, ->30
         21    > > FE_FETCH_R                                       ~24     $23, !5, ->30
         22    >   ASSIGN                                                   !6, ~24
   36    23        ROPE_INIT                                     5  ~27     '%09++++'
         24        ROPE_ADD                                      1  ~27     ~27, !6
         25        ROPE_ADD                                      2  ~27     ~27, '%3A+'
         26        ROPE_ADD                                      3  ~27     ~27, !5
         27        ROPE_END                                      4  ~26     ~27, '%3Cbr%3E%0A'
         28        ECHO                                                     ~26
   35    29      > JMP                                                      ->21
         30    >   FE_FREE                                                  $23
   33    31      > JMP                                                      ->14
         32    >   FE_FREE                                                  $17
   30    33      > JMP                                                      ->2
         34    >   FE_FREE                                                  $8
   39    35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
275.91 ms | 1007 KiB | 13 Q