3v4l.org

run code in 300+ PHP versions simultaneously
<?php $uniqid_with_more_entropy = uniqid('', true); $uniqid_13x = substr($uniqid_with_more_entropy, 0, 13); $more_entropy = substr($string, 13); $more_entropy = str_replace('.', '', $more_entropy); echo dechex(mt_rand(0, 0xFFF)) . dechex(mt_rand(0, 0xFFFFFFFF)) . $uniqid_13x . dechex((int)((string)mt_rand(0, 4) . $more_entropy));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Dt4aU
function name:  (null)
number of ops:  51
compiled vars:  !0 = $uniqid_with_more_entropy, !1 = $uniqid_13x, !2 = $more_entropy, !3 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'uniqid'
          1        SEND_VAL                                                 ''
          2        SEND_VAL                                                 <true>
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !0, $4
    4     5        INIT_FCALL                                               'substr'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 0
          8        SEND_VAL                                                 13
          9        DO_ICALL                                         $6      
         10        ASSIGN                                                   !1, $6
    5    11        INIT_FCALL                                               'substr'
         12        SEND_VAR                                                 !3
         13        SEND_VAL                                                 13
         14        DO_ICALL                                         $8      
         15        ASSIGN                                                   !2, $8
    6    16        INIT_FCALL                                               'str_replace'
         17        SEND_VAL                                                 '.'
         18        SEND_VAL                                                 ''
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                         $10     
         21        ASSIGN                                                   !2, $10
    7    22        INIT_FCALL                                               'dechex'
         23        INIT_FCALL                                               'mt_rand'
         24        SEND_VAL                                                 0
         25        SEND_VAL                                                 4095
         26        DO_ICALL                                         $12     
         27        SEND_VAR                                                 $12
         28        DO_ICALL                                         $13     
         29        INIT_FCALL                                               'dechex'
         30        INIT_FCALL                                               'mt_rand'
         31        SEND_VAL                                                 0
         32        SEND_VAL                                                 4294967295
         33        DO_ICALL                                         $14     
         34        SEND_VAR                                                 $14
         35        DO_ICALL                                         $15     
         36        CONCAT                                           ~16     $13, $15
         37        CONCAT                                           ~17     ~16, !1
         38        INIT_FCALL                                               'dechex'
         39        INIT_FCALL                                               'mt_rand'
         40        SEND_VAL                                                 0
         41        SEND_VAL                                                 4
         42        DO_ICALL                                         $18     
         43        CAST                                          6  ~19     $18
         44        CONCAT                                           ~20     ~19, !2
         45        CAST                                          4  ~21     ~20
         46        SEND_VAL                                                 ~21
         47        DO_ICALL                                         $22     
         48        CONCAT                                           ~23     ~17, $22
         49        ECHO                                                     ~23
         50      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.85 ms | 1405 KiB | 23 Q