3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "UDISKLOG version=2 date=2019-02-21 firmware=FK254HS30_en_v132 No Mchn EnNo Name Mode IOMd DateTime 000001 1 000000001 ting 268435456 2305 2019/02/16 10:15:56 000002 1 000000001 ting 268435456 2305 2019/02/16 13:45:58 000003 1 000000001 ting 268435456 2305 2019/02/16 13:46:04 000004 1 001500022 julie 268435456 2305 2019/02/16 13:48:52 000005 1 000000001 ting 268435456 2305 2019/02/21 17:33:16 000006 1 000000001 ting 268435456 2305 2019/02/21 18:14:15 000007 1 001500022 julie 268435456 2305 2019/02/21 18:14:55 000008 1 000000002 marielle 268435456 2305 2019/02/21 18:18:15 000009 1 000000001 ting 268435456 2305 2019/02/21 18:52:54 000010 1 000000002 marielle 268435456 2305 2019/02/21 18:53:31 000011 1 000000002 marielle 268435456 2305 2019/02/21 18:55:57 000012 1 000000002 marielle 268435456 2305 2019/02/21 18:56:07 000013 1 001500022 julie 268435456 2305 2019/02/21 20:42:36 000014 1 000000001 ting 268435456 2305 2019/02/21 21:00:23 000015 1 000000001 ting 268435456 2305 2019/02/21 21:02:21 000016 1 000000001 ting 268435456 2305 2019/02/21 21:11:09"; $arr = array_slice(explode("\n", $data),2); foreach($arr as $line){ $temp = preg_split("/\s+/", $line); $result[$temp[2]][$temp[6]][] = end($temp); } Var_dump($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 27
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 27
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/uX0ig
function name:  (null)
number of ops:  32
compiled vars:  !0 = $data, !1 = $arr, !2 = $line, !3 = $temp, !4 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'UDISKLOG++++version%3D2+++date%3D2019-02-21+firmware%3DFK254HS30_en_v132%0ANo++Mchn++++EnNo++++++++Name++++++++Mode++++IOMd++++DateTime++++%0A000001++1+++000000001+++ting++++++++++++268435456+++2305++++2019%2F02%2F16++10%3A15%3A56%0A000002++1+++000000001+++ting++++++++++++268435456+++2305++++2019%2F02%2F16++13%3A45%3A58%0A000003++1+++000000001+++ting++++++++++++268435456+++2305++++2019%2F02%2F16++13%3A46%3A04%0A000004++1+++001500022+++julie+++++++++++268435456+++2305++++2019%2F02%2F16++13%3A48%3A52%0A000005++1+++000000001+++ting++++++++++++268435456+++2305++++2019%2F02%2F21++17%3A33%3A16%0A000006++1+++000000001+++ting++++++++++++268435456+++2305++++2019%2F02%2F21++18%3A14%3A15%0A000007++1+++001500022+++julie+++++++++++268435456+++2305++++2019%2F02%2F21++18%3A14%3A55%0A000008++1+++000000002+++marielle++++++++268435456+++2305++++2019%2F02%2F21++18%3A18%3A15%0A000009++1+++000000001+++ting++++++++++++268435456+++2305++++2019%2F02%2F21++18%3A52%3A54%0A000010++1+++000000002+++marielle++++++++268435456+++2305++++2019%2F02%2F21++18%3A53%3A31%0A000011++1+++000000002+++marielle++++++++268435456+++2305++++2019%2F02%2F21++18%3A55%3A57%0A000012++1+++000000002+++marielle++++++++268435456+++2305++++2019%2F02%2F21++18%3A56%3A07%0A000013++1+++001500022+++julie+++++++++++268435456+++2305++++2019%2F02%2F21++20%3A42%3A36%0A000014++1+++000000001+++ting++++++++++++268435456+++2305++++2019%2F02%2F21++21%3A00%3A23%0A000015++1+++000000001+++ting++++++++++++268435456+++2305++++2019%2F02%2F21++21%3A02%3A21%0A000016++1+++000000001+++ting++++++++++++268435456+++2305++++2019%2F02%2F21++21%3A11%3A09'
   23     1        INIT_FCALL                                               'array_slice'
          2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%0A'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $6      
          6        SEND_VAR                                                 $6
          7        SEND_VAL                                                 2
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !1, $7
   24    10      > FE_RESET_R                                       $9      !1, ->27
         11    > > FE_FETCH_R                                               $9, !2, ->27
   25    12    >   INIT_FCALL                                               'preg_split'
         13        SEND_VAL                                                 '%2F%5Cs%2B%2F'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $10     
         16        ASSIGN                                                   !3, $10
   26    17        FETCH_DIM_R                                      ~12     !3, 2
         18        FETCH_DIM_R                                      ~14     !3, 6
         19        INIT_FCALL                                               'end'
         20        SEND_REF                                                 !3
         21        DO_ICALL                                         $17     
         22        FETCH_DIM_W                                      $13     !4, ~12
         23        FETCH_DIM_W                                      $15     $13, ~14
         24        ASSIGN_DIM                                               $15
         25        OP_DATA                                                  $17
   24    26      > JMP                                                      ->11
         27    >   FE_FREE                                                  $9
   29    28        INIT_FCALL                                               'var_dump'
         29        SEND_VAR                                                 !4
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.96 ms | 1009 KiB | 18 Q