3v4l.org

run code in 500+ 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:  39
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        FRAMELESS_ICALL_1                dechex              ~14     !1
         23        ASSIGN                                                       !1, ~14
    6    24        INIT_FCALL                                                   'hex2bin'
         25        SEND_VAR                                                     !1
         26        DO_ICALL                                             $16     
         27        ASSIGN                                                       !1, $16
    7    28        INIT_FCALL                                                   'base64_encode'
         29        SEND_VAR                                                     !1
         30        DO_ICALL                                             $18     
         31        ASSIGN                                                       !1, $18
    8    32        FRAMELESS_ICALL_3                str_replace         ~20     <array>, <array>
         33        OP_DATA                                                      !1
         34        ASSIGN                                                       !1, ~20
    9    35        INIT_FCALL                                                   'var_dump'
         36        SEND_VAR                                                     !1
         37        DO_ICALL                                                     
         38      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
177.15 ms | 2199 KiB | 19 Q