3v4l.org

run code in 500+ PHP versions simultaneously
<?php $item_list = array ( 'total_price' => 1200, 'item_1' => array ( 'item_name1' => 'xyz', 'item_price1' => 100.00 ), 'item_2' => array ( 'item_name2' => 'abc', 'item_price2' => 200.00 ), 'item_3' => null, 'item_4' => array ( 'item_name3' => 'aaa', 'item_price3' => 402.00 ) ); foreach ($item_list as $key => $item_details) { if (is_array($item_details)) { echo "$key:\n"; foreach ($item_details as $name => $value) { echo "\t$name: $value\n"; } } else { echo "$key: $item_details\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 27
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 27
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 21
Branch analysis from position: 6
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 19
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 19
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 19
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/KBYfs
function name:  (null)
number of ops:  29
compiled vars:  !0 = $item_list, !1 = $item_details, !2 = $key, !3 = $value, !4 = $name
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   23     1      > FE_RESET_R                                           $6      !0, ->27
          2    > > FE_FETCH_R                                           ~7      $6, !1, ->27
          3    >   ASSIGN                                                       !2, ~7
   24     4        TYPE_CHECK                                      128          !1
          5      > JMPZ                                                         ~9, ->21
   25     6    >   NOP                                                          
          7        FAST_CONCAT                                          ~10     !2, '%3A%0A'
          8        ECHO                                                         ~10
   26     9      > FE_RESET_R                                           $11     !1, ->19
         10    > > FE_FETCH_R                                           ~12     $11, !3, ->19
         11    >   ASSIGN                                                       !4, ~12
   27    12        ROPE_INIT                                         5  ~15     '%09'
         13        ROPE_ADD                                          1  ~15     ~15, !4
         14        ROPE_ADD                                          2  ~15     ~15, '%3A+'
         15        ROPE_ADD                                          3  ~15     ~15, !3
         16        ROPE_END                                          4  ~14     ~15, '%0A'
         17        ECHO                                                         ~14
   26    18      > JMP                                                          ->10
         19    >   FE_FREE                                                      $11
   24    20      > JMP                                                          ->26
   31    21    >   ROPE_INIT                                         4  ~19     !2
         22        ROPE_ADD                                          1  ~19     ~19, '%3A+'
         23        ROPE_ADD                                          2  ~19     ~19, !1
         24        ROPE_END                                          3  ~18     ~19, '%0A'
         25        ECHO                                                         ~18
   23    26    > > JMP                                                          ->2
         27    >   FE_FREE                                                      $6
   33    28      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
125.92 ms | 475 KiB | 7 Q