3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(-1); $b = array(array('id' => 1, 'fid' => 2), array('id' => 2, 'fid' => 2)); $map = array(); foreach($array as $record) { $pointer = &$map; foreach($properties as $property) { $propValue = self::_getPropertyValue($record, $property); $pointer[$propValue][] = $property; $pointer = &$pointer[$propValue]; } } var_dump($map);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 23
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 23
Branch analysis from position: 7
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 21
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 21
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 21
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/f8gtM
function name:  (null)
number of ops:  28
compiled vars:  !0 = $b, !1 = $map, !2 = $array, !3 = $record, !4 = $pointer, !5 = $properties, !6 = $property, !7 = $propValue
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'error_reporting'
          1        SEND_VAL                                                 -1
          2        DO_ICALL                                                 
    4     3        ASSIGN                                                   !0, <array>
    6     4        ASSIGN                                                   !1, <array>
    7     5      > FE_RESET_R                                       $11     !2, ->23
          6    > > FE_FETCH_R                                               $11, !3, ->23
    8     7    >   ASSIGN_REF                                               !4, !1
    9     8      > FE_RESET_R                                       $13     !5, ->21
          9    > > FE_FETCH_R                                               $13, !6, ->21
   10    10    >   INIT_STATIC_METHOD_CALL                                  '_getPropertyValue'
         11        SEND_VAR_EX                                              !3
         12        SEND_VAR_EX                                              !6
         13        DO_FCALL                                      0  $14     
         14        ASSIGN                                                   !7, $14
   11    15        FETCH_DIM_W                                      $16     !4, !7
         16        ASSIGN_DIM                                               $16
         17        OP_DATA                                                  !6
   12    18        FETCH_DIM_W                                      $18     !4, !7
         19        ASSIGN_REF                                               !4, $18
    9    20      > JMP                                                      ->9
         21    >   FE_FREE                                                  $13
    7    22      > JMP                                                      ->6
         23    >   FE_FREE                                                  $11
   15    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.74 ms | 1396 KiB | 17 Q