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 [$user, $date, $md5, $sha1]) { $result[$user][$date] = [$md5, $sha1]; } var_export($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 19
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 19
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/B7IEr
function name:  (null)
number of ops:  24
compiled vars:  !0 = $array, !1 = $result, !2 = $user, !3 = $date, !4 = $md5, !5 = $sha1
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                                       $8      !0, ->19
          3    > > FE_FETCH_R                                               $8, $9, ->19
          4    >   FETCH_LIST_R                                     $10     $9, 0
          5        ASSIGN                                                   !2, $10
          6        FETCH_LIST_R                                     $12     $9, 1
          7        ASSIGN                                                   !3, $12
          8        FETCH_LIST_R                                     $14     $9, 2
          9        ASSIGN                                                   !4, $14
         10        FETCH_LIST_R                                     $16     $9, 3
         11        ASSIGN                                                   !5, $16
         12        FREE                                                     $9
   13    13        INIT_ARRAY                                       ~20     !4
         14        ADD_ARRAY_ELEMENT                                ~20     !5
         15        FETCH_DIM_W                                      $18     !1, !2
         16        ASSIGN_DIM                                               $18, !3
         17        OP_DATA                                                  ~20
   12    18      > JMP                                                      ->3
         19    >   FE_FREE                                                  $8
   15    20        INIT_FCALL                                               'var_export'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167 ms | 1395 KiB | 15 Q