3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [ ["user", "date", "md5", "sha1"], ["user1", "02/02/15", "123456", "54321"], ["user1", "02/03/15", "123456", "54321"], ["user2", "02/02/15", "112233", "332211"], ["user2", "02/03/15", "112244", "332244"] ]; $result = []; foreach ($array as $row) { $result[array_shift($row)][array_shift($row)] = $row; } var_export($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 14
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 14
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/PhrsR
function name:  (null)
number of ops:  19
compiled vars:  !0 = $array, !1 = $result, !2 = $row
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   11     1        ASSIGN                                                   !1, <array>
   12     2      > FE_RESET_R                                       $5      !0, ->14
          3    > > FE_FETCH_R                                               $5, !2, ->14
   13     4    >   INIT_FCALL                                               'array_shift'
          5        SEND_REF                                                 !2
          6        DO_ICALL                                         $6      
          7        INIT_FCALL                                               'array_shift'
          8        SEND_REF                                                 !2
          9        DO_ICALL                                         $8      
         10        FETCH_DIM_W                                      $7      !1, $6
         11        ASSIGN_DIM                                               $7, $8
         12        OP_DATA                                                  !2
   12    13      > JMP                                                      ->3
         14    >   FE_FREE                                                  $5
   15    15        INIT_FCALL                                               'var_export'
         16        SEND_VAR                                                 !1
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.11 ms | 1395 KiB | 17 Q