3v4l.org

run code in 300+ PHP versions simultaneously
<?php $yaml = [ 'components' => [ [ 'cachet' => [ 'componentgroup' => 'FOO', 'componentname' => 'BAR' ] ], [ 'cachet' => [ 'componentgroup' => 'Key1', 'componentname' => 'Value1' ] ], [ 'cachet' => [ 'componentgroup' => 'Key2', 'componentname' => 'Value2' ] ], [ 'cachet' => [ 'componentgroup' => 'FOO', 'componentname' => 'BAZ' ] ], [ 'cachet' => [ 'componentgroup' => 'Key3', 'componentname' => 'Value3' ] ] ] ]; foreach ($yaml as $components) { foreach ($components as $sets) { foreach ($sets as $cachet) { $result[] = [$cachet['componentgroup'] => $cachet['componentname']]; } } } var_export(array_merge_recursive(...$result));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 17
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 17
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 13
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: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/ITcLS
function name:  (null)
number of ops:  26
compiled vars:  !0 = $yaml, !1 = $components, !2 = $sets, !3 = $cachet, !4 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   37     1      > FE_RESET_R                                       $6      !0, ->17
          2    > > FE_FETCH_R                                               $6, !1, ->17
   38     3    > > FE_RESET_R                                       $7      !1, ->15
          4    > > FE_FETCH_R                                               $7, !2, ->15
   39     5    > > FE_RESET_R                                       $8      !2, ->13
          6    > > FE_FETCH_R                                               $8, !3, ->13
   40     7    >   FETCH_DIM_R                                      ~10     !3, 'componentgroup'
          8        FETCH_DIM_R                                      ~11     !3, 'componentname'
          9        INIT_ARRAY                                       ~12     ~11, ~10
         10        ASSIGN_DIM                                               !4
         11        OP_DATA                                                  ~12
   39    12      > JMP                                                      ->6
         13    >   FE_FREE                                                  $8
   38    14      > JMP                                                      ->4
         15    >   FE_FREE                                                  $7
   37    16      > JMP                                                      ->2
         17    >   FE_FREE                                                  $6
   45    18        INIT_FCALL                                               'var_export'
         19        INIT_FCALL                                               'array_merge_recursive'
         20        SEND_UNPACK                                              !4
         21        CHECK_UNDEF_ARGS                                         
         22        DO_ICALL                                         $13     
         23        SEND_VAR                                                 $13
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.73 ms | 1000 KiB | 15 Q