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3,4,3,2,5,1,2,1,3,4,3,2,5); $resultArray = array(); foreach($arrayName as $value) { $resultArray[$value] = isset($resultArray[$value]) ? $resultArray[$value] + 1 : 1; } Echo (microtime(true)-$start)*1000 ."\n"; Var_dump($resultArray);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 18
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/1L3Ps
function name:  (null)
number of ops:  30
compiled vars:  !0 = $start, !1 = $arrayName, !2 = $resultArray, !3 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'microtime'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    3     4        ASSIGN                                                   !1, <array>
    5     5        ASSIGN                                                   !2, <array>
    6     6      > FE_RESET_R                                       $8      !1, ->18
          7    > > FE_FETCH_R                                               $8, !3, ->18
    7     8    >   ISSET_ISEMPTY_DIM_OBJ                         0          !2, !3
          9      > JMPZ                                                     ~10, ->14
         10    >   FETCH_DIM_R                                      ~11     !2, !3
         11        ADD                                              ~12     ~11, 1
         12        QM_ASSIGN                                        ~13     ~12
         13      > JMP                                                      ->15
         14    >   QM_ASSIGN                                        ~13     1
         15    >   ASSIGN_DIM                                               !2, !3
         16        OP_DATA                                                  ~13
    6    17      > JMP                                                      ->7
         18    >   FE_FREE                                                  $8
    9    19        INIT_FCALL                                               'microtime'
         20        SEND_VAL                                                 <true>
         21        DO_ICALL                                         $14     
         22        SUB                                              ~15     $14, !0
         23        MUL                                              ~16     ~15, 1000
         24        CONCAT                                           ~17     ~16, '%0A'
         25        ECHO                                                     ~17
   10    26        INIT_FCALL                                               'var_dump'
         27        SEND_VAR                                                 !2
         28        DO_ICALL                                                 
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.66 ms | 1012 KiB | 15 Q