3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.98 ms | 1400 KiB | 29 Q