3v4l.org

run code in 500+ PHP versions simultaneously
<?php $jsonArr = [ 'vbas31' => [ 'enabled' => [0 => 'NO'], 'registered' => [0 => 'NO'] ], 'bnmsa1' => [ 'enabled' => [0 => 'YES'], 'registered' => [0 => 'NO'], 'compromised' => [0 => 'NO'] ] ]; foreach ($jsonArr as $index => $data) { foreach ($data as $key => $array) { $line = [$index, $key, $array[0]]; // Some debug output echo $index . ": " . $key . ", " . $array[0] . "\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 22
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 22
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 20
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 20
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 20
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/d2f3Z
function name:  (null)
number of ops:  24
compiled vars:  !0 = $jsonArr, !1 = $data, !2 = $index, !3 = $array, !4 = $key, !5 = $line
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, <array>
   16     1      > FE_RESET_R                                           $7      !0, ->22
          2    > > FE_FETCH_R                                           ~8      $7, !1, ->22
          3    >   ASSIGN                                                       !2, ~8
   17     4      > FE_RESET_R                                           $10     !1, ->20
          5    > > FE_FETCH_R                                           ~11     $10, !3, ->20
          6    >   ASSIGN                                                       !4, ~11
   18     7        INIT_ARRAY                                           ~13     !2
          8        ADD_ARRAY_ELEMENT                                    ~13     !4
          9        FETCH_DIM_R                                          ~14     !3, 0
         10        ADD_ARRAY_ELEMENT                                    ~13     ~14
         11        ASSIGN                                                       !5, ~13
   21    12        CONCAT                                               ~16     !2, '%3A+'
         13        CONCAT                                               ~17     ~16, !4
         14        CONCAT                                               ~18     ~17, '%2C+'
         15        FETCH_DIM_R                                          ~19     !3, 0
         16        CONCAT                                               ~20     ~18, ~19
         17        CONCAT                                               ~21     ~20, '%0A'
         18        ECHO                                                         ~21
   17    19      > JMP                                                          ->5
         20    >   FE_FREE                                                      $10
   16    21      > JMP                                                          ->2
         22    >   FE_FREE                                                      $7
   24    23      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
153.53 ms | 1493 KiB | 13 Q