3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = floor(microtime(true) * 1000); $uid = 1 << 45 + 9 + 9 | random_int(0, 0b111111111) << 45 + 9 | $time << 9 | random_int(0, 0b111111111); $uid = dechex($uid); $uid = hex2bin($uid); $uid = base64_encode($uid); $uid = str_replace(['=', '+', '/'], ['', '-', '_'], $uid); var_dump($uid);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EEADG
function name:  (null)
number of ops:  44
compiled vars:  !0 = $time, !1 = $uid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'floor'
          1        INIT_FCALL                                               'microtime'
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $2      
          4        MUL                                              ~3      $2, 1000
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !0, $4
    4     8        INIT_FCALL                                               'random_int'
          9        SEND_VAL                                                 0
         10        SEND_VAL                                                 511
         11        DO_ICALL                                         $6      
         12        SL                                               ~7      $6, 54
         13        BW_OR                                            ~8      ~7, -9223372036854775808
         14        SL                                               ~9      !0, 9
         15        BW_OR                                            ~10     ~8, ~9
         16        INIT_FCALL                                               'random_int'
         17        SEND_VAL                                                 0
         18        SEND_VAL                                                 511
         19        DO_ICALL                                         $11     
         20        BW_OR                                            ~12     $11, ~10
         21        ASSIGN                                                   !1, ~12
    5    22        INIT_FCALL                                               'dechex'
         23        SEND_VAR                                                 !1
         24        DO_ICALL                                         $14     
         25        ASSIGN                                                   !1, $14
    6    26        INIT_FCALL                                               'hex2bin'
         27        SEND_VAR                                                 !1
         28        DO_ICALL                                         $16     
         29        ASSIGN                                                   !1, $16
    7    30        INIT_FCALL                                               'base64_encode'
         31        SEND_VAR                                                 !1
         32        DO_ICALL                                         $18     
         33        ASSIGN                                                   !1, $18
    8    34        INIT_FCALL                                               'str_replace'
         35        SEND_VAL                                                 <array>
         36        SEND_VAL                                                 <array>
         37        SEND_VAR                                                 !1
         38        DO_ICALL                                         $20     
         39        ASSIGN                                                   !1, $20
    9    40        INIT_FCALL                                               'var_dump'
         41        SEND_VAR                                                 !1
         42        DO_ICALL                                                 
         43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139.3 ms | 1006 KiB | 21 Q