3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = [ 4482 => [ "id" => "4597608", "date" => "2020-03-05", "portfolio_ID" => "21177", "summ" => "597199", "value" => "RUR" ], 4483 => [ "id" => "4597609", "date" => "2020-03-05", "portfolio_ID" => "21177", "summ" => "597199", "value" => "summ" ], 4484 => [ "id" => "4597611", "date" => "2020-03-05", "portfolio_ID" => "21177", "summ" => "597199", "value" => "RUR" ] ]; $arr = array_reverse($arr); foreach($arr as $sub){ $new[$sub['date'].$sub['portfolio_ID'].$sub['summ'].$sub['value']] = $sub; } $new = array_values($new); var_dump($new);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 17
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 17
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/CKILH
function name:  (null)
number of ops:  26
compiled vars:  !0 = $arr, !1 = $sub, !2 = $new
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   27     1        INIT_FCALL                                               'array_reverse'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !0, $4
   29     5      > FE_RESET_R                                       $6      !0, ->17
          6    > > FE_FETCH_R                                               $6, !1, ->17
   30     7    >   FETCH_DIM_R                                      ~7      !1, 'date'
          8        FETCH_DIM_R                                      ~8      !1, 'portfolio_ID'
          9        CONCAT                                           ~9      ~7, ~8
         10        FETCH_DIM_R                                      ~10     !1, 'summ'
         11        CONCAT                                           ~11     ~9, ~10
         12        FETCH_DIM_R                                      ~12     !1, 'value'
         13        CONCAT                                           ~13     ~11, ~12
         14        ASSIGN_DIM                                               !2, ~13
         15        OP_DATA                                                  !1
   29    16      > JMP                                                      ->6
         17    >   FE_FREE                                                  $6
   32    18        INIT_FCALL                                               'array_values'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                         $15     
         21        ASSIGN                                                   !2, $15
   34    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.51 ms | 1395 KiB | 19 Q