3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.5 ms | 1392 KiB | 29 Q