3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = array( '123' => array('data' => array('categories' => array( array( 'id' => '2', 'description' => 'Single-player' ), array( 'id' => '1', 'description' => 'Multi-player' ), array( 'id' => '9', 'description' => 'Co-op' ), array( 'id' => '22', 'description' => 'Steam Achievements' ), array( 'id' => '28', 'description' => 'Full controller support' ) )) ), '456' => array('data' => array('categories' => array( array( 'id' => '21', 'description' => 'Downloadable Content' ) )) ), ); //print_r($json); $result = array(); foreach($json as $j1) { foreach($j1 as $j2) { foreach($j2 as $j3) { print_r($j3); } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 16
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 16
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 14
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 14
Branch analysis from position: 6
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 12
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 14
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/QaqCZ
function name:  (null)
number of ops:  18
compiled vars:  !0 = $json, !1 = $result, !2 = $j1, !3 = $j2, !4 = $j3
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   37     1        ASSIGN                                                   !1, <array>
   38     2      > FE_RESET_R                                       $7      !0, ->16
          3    > > FE_FETCH_R                                               $7, !2, ->16
   40     4    > > FE_RESET_R                                       $8      !2, ->14
          5    > > FE_FETCH_R                                               $8, !3, ->14
   42     6    > > FE_RESET_R                                       $9      !3, ->12
          7    > > FE_FETCH_R                                               $9, !4, ->12
   44     8    >   INIT_FCALL                                               'print_r'
          9        SEND_VAR                                                 !4
         10        DO_ICALL                                                 
   42    11      > JMP                                                      ->7
         12    >   FE_FREE                                                  $9
   40    13      > JMP                                                      ->5
         14    >   FE_FREE                                                  $8
   38    15      > JMP                                                      ->3
         16    >   FE_FREE                                                  $7
   48    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.93 ms | 1395 KiB | 15 Q