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 $lang => $val){ echo $lang . ": " . $val . "\n"; } echo "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 18
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 15
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/4AGmW
function name:  (null)
number of ops:  20
compiled vars:  !0 = $texts, !1 = $subarr, !2 = $key, !3 = $val, !4 = $lang
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   25     1      > FE_RESET_R                                       $6      !0, ->18
          2    > > FE_FETCH_R                                       ~7      $6, !1, ->18
          3    >   ASSIGN                                                   !2, ~7
   26     4        CONCAT                                           ~9      !2, '%0A'
          5        ECHO                                                     ~9
   27     6        FETCH_DIM_R                                      ~10     !1, 'translations'
          7      > FE_RESET_R                                       $11     ~10, ->15
          8    > > FE_FETCH_R                                       ~12     $11, !3, ->15
          9    >   ASSIGN                                                   !4, ~12
   28    10        CONCAT                                           ~14     !4, '%3A+'
         11        CONCAT                                           ~15     ~14, !3
         12        CONCAT                                           ~16     ~15, '%0A'
         13        ECHO                                                     ~16
   27    14      > JMP                                                      ->8
         15    >   FE_FREE                                                  $11
   30    16        ECHO                                                     '%0A'
   25    17      > JMP                                                      ->2
         18    >   FE_FREE                                                  $6
   31    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.46 ms | 1394 KiB | 13 Q