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(6)); $ids[] = hash('sha512', random_bytes(16)); 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 = 29
Branch analysis from position: 29
2 jumps found. (Code = 44) Position 1 = 31, Position 2 = 8
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/iaQcN
function name:  (null)
number of ops:  46
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                                                      ->29
    9     8    >   INIT_FCALL                                               'bin2hex'
          9        INIT_FCALL                                               'random_bytes'
         10        SEND_VAL                                                 6
         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                                                 16
         19        DO_ICALL                                         $12     
         20        SEND_VAR                                                 $12
         21        DO_ICALL                                         $13     
         22        ASSIGN_DIM                                               !0
         23        OP_DATA                                                  $13
   13    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !0
         26        DO_ICALL                                                 
         27      > EXIT                                                     
    7    28*       PRE_INC                                                  !1
         29    >   IS_SMALLER                                               !1, 100000
         30      > JMPNZ                                                    ~16, ->8
   16    31    >   INIT_FCALL                                               'array_count_values'
         32        SEND_VAR                                                 !0
         33        DO_ICALL                                         $17     
         34        ASSIGN                                                   !3, $17
   17    35        INIT_FCALL                                               'asort'
         36        SEND_REF                                                 !3
         37        DO_ICALL                                                 
   19    38        INIT_FCALL                                               'var_dump'
   20    39        INIT_FCALL                                               'key'
         40        SEND_VAR                                                 !3
         41        DO_ICALL                                         $20     
         42        FETCH_DIM_R                                      ~21     !3, $20
         43        SEND_VAL                                                 ~21
         44        DO_ICALL                                                 
   21    45      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.91 ms | 1400 KiB | 29 Q