3v4l.org

run code in 300+ PHP versions simultaneously
<?php $texts = Array ( "CAR_SINGULAR" => Array ( "id" => 1, "translations" => Array ( "de" => "Auto", "en" => "Car" ) ), "CAR_PLURAL" => Array ( "id" => 2, "translations" => Array ( "de" => "Autos", "en" => "cars" ) ) ); foreach($texts as $key => $subarr){ echo $key. "\n"; foreach($subarr["translations"] as $val){ echo $val . "\n"; } echo "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 15
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 15
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 12
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/i8rU2
function name:  (null)
number of ops:  17
compiled vars:  !0 = $texts, !1 = $subarr, !2 = $key, !3 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   25     1      > FE_RESET_R                                       $5      !0, ->15
          2    > > FE_FETCH_R                                       ~6      $5, !1, ->15
          3    >   ASSIGN                                                   !2, ~6
   26     4        CONCAT                                           ~8      !2, '%0A'
          5        ECHO                                                     ~8
   27     6        FETCH_DIM_R                                      ~9      !1, 'translations'
          7      > FE_RESET_R                                       $10     ~9, ->12
          8    > > FE_FETCH_R                                               $10, !3, ->12
   28     9    >   CONCAT                                           ~11     !3, '%0A'
         10        ECHO                                                     ~11
   27    11      > JMP                                                      ->8
         12    >   FE_FREE                                                  $10
   30    13        ECHO                                                     '%0A'
   25    14      > JMP                                                      ->2
         15    >   FE_FREE                                                  $5
   31    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.9 ms | 1393 KiB | 13 Q