3v4l.org

run code in 300+ PHP versions simultaneously
<?php $gender = array ('boy', 'girl', 'trangender'); $shopping_data = array( 'boy' => array( 'accessory' => array('belt','wallet','watch'), 'age' => array(20,45,50) ), 'girl'=> array( 'accessory' => array('hair-clip','wallet','watch'), 'age' => array(30,40) ) ); foreach($gender as $gen){ if(isset($shopping_data[$gen])){ echo $gen .":\n"; foreach($shopping_data[$gen]["accessory"] as $acc){ echo $acc . "\n"; } echo "\n\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 18
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 17
Branch analysis from position: 6
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 15
Branch analysis from position: 17
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/hjCrV
function name:  (null)
number of ops:  20
compiled vars:  !0 = $gender, !1 = $shopping_data, !2 = $gen, !3 = $acc
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
   16     2      > FE_RESET_R                                       $6      !0, ->18
          3    > > FE_FETCH_R                                               $6, !2, ->18
   17     4    >   ISSET_ISEMPTY_DIM_OBJ                         0          !1, !2
          5      > JMPZ                                                     ~7, ->17
   18     6    >   CONCAT                                           ~8      !2, '%3A%0A'
          7        ECHO                                                     ~8
   19     8        FETCH_DIM_R                                      ~9      !1, !2
          9        FETCH_DIM_R                                      ~10     ~9, 'accessory'
         10      > FE_RESET_R                                       $11     ~10, ->15
         11    > > FE_FETCH_R                                               $11, !3, ->15
   20    12    >   CONCAT                                           ~12     !3, '%0A'
         13        ECHO                                                     ~12
   19    14      > JMP                                                      ->11
         15    >   FE_FREE                                                  $11
   22    16        ECHO                                                     '%0A%0A'
   16    17    > > JMP                                                      ->3
         18    >   FE_FREE                                                  $6
   24    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
339.02 ms | 1002 KiB | 13 Q