3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (phpversion() != '7.0.0') { die; } $ids = []; for($i=0; $i<100000; $i++) { $userid = bin2hex(random_bytes(12)); $ids[] = $userid.hash('sha512', random_bytes(64)); var_dump($ids);die; } $a = array_count_values($ids); asort($a); var_dump( $a[key($a)] );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 44) Position 1 = 32, Position 2 = 8
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/4S1e0
function name:  (null)
number of ops:  47
compiled vars:  !0 = $ids, !1 = $i, !2 = $userid, !3 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'phpversion'
          1        DO_ICALL                                         $4      
          2        IS_NOT_EQUAL                                             $4, '7.0.0'
          3      > JMPZ                                                     ~5, ->5
          4    > > EXIT                                                     
    5     5    >   ASSIGN                                                   !0, <array>
    7     6        ASSIGN                                                   !1, 0
          7      > JMP                                                      ->30
    9     8    >   INIT_FCALL                                               'bin2hex'
          9        INIT_FCALL                                               'random_bytes'
         10        SEND_VAL                                                 12
         11        DO_ICALL                                         $8      
         12        SEND_VAR                                                 $8
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !2, $9
   11    15        INIT_FCALL                                               'hash'
         16        SEND_VAL                                                 'sha512'
         17        INIT_FCALL                                               'random_bytes'
         18        SEND_VAL                                                 64
         19        DO_ICALL                                         $12     
         20        SEND_VAR                                                 $12
         21        DO_ICALL                                         $13     
         22        CONCAT                                           ~14     !2, $13
         23        ASSIGN_DIM                                               !0
         24        OP_DATA                                                  ~14
   13    25        INIT_FCALL                                               'var_dump'
         26        SEND_VAR                                                 !0
         27        DO_ICALL                                                 
         28      > EXIT                                                     
    7    29*       PRE_INC                                                  !1
         30    >   IS_SMALLER                                               !1, 100000
         31      > JMPNZ                                                    ~17, ->8
   16    32    >   INIT_FCALL                                               'array_count_values'
         33        SEND_VAR                                                 !0
         34        DO_ICALL                                         $18     
         35        ASSIGN                                                   !3, $18
   17    36        INIT_FCALL                                               'asort'
         37        SEND_REF                                                 !3
         38        DO_ICALL                                                 
   19    39        INIT_FCALL                                               'var_dump'
   20    40        INIT_FCALL                                               'key'
         41        SEND_VAR                                                 !3
         42        DO_ICALL                                         $21     
         43        FETCH_DIM_R                                      ~22     !3, $21
         44        SEND_VAL                                                 ~22
         45        DO_ICALL                                                 
   21    46      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.48 ms | 1392 KiB | 29 Q