3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ps = array(); foreach($arr as $value){ $index = str_replace(" ", "", strtolower($value['L2_ATTR_DESC'])); $ps[$index][] = $value[L3_ATTR_DESC]; } print_r($ps);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 19
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 19
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/JuPIa
function name:  (null)
number of ops:  24
compiled vars:  !0 = $ps, !1 = $arr, !2 = $value, !3 = $index
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_R                                       $5      !1, ->19
          2    > > FE_FETCH_R                                               $5, !2, ->19
    5     3    >   INIT_FCALL                                               'str_replace'
          4        SEND_VAL                                                 '+'
          5        SEND_VAL                                                 ''
          6        INIT_FCALL                                               'strtolower'
          7        FETCH_DIM_R                                      ~6      !2, 'L2_ATTR_DESC'
          8        SEND_VAL                                                 ~6
          9        DO_ICALL                                         $7      
         10        SEND_VAR                                                 $7
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !3, $8
    6    13        FETCH_CONSTANT                                   ~12     'L3_ATTR_DESC'
         14        FETCH_DIM_R                                      ~13     !2, ~12
         15        FETCH_DIM_W                                      $10     !0, !3
         16        ASSIGN_DIM                                               $10
         17        OP_DATA                                                  ~13
    4    18      > JMP                                                      ->2
         19    >   FE_FREE                                                  $5
    9    20        INIT_FCALL                                               'print_r'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.02 ms | 1410 KiB | 19 Q