3v4l.org

run code in 300+ PHP versions simultaneously
<?php $generated_id = strtoupper(substr('abcdefghijklmnopqrstuvwxyz', mt_rand(0,25), 1) . mt_rand(0,9) . substr(hash("sha256", time() . mt_rand(100000,999999)),0,6)); echo $generated_id;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CGIjN
function name:  (null)
number of ops:  37
compiled vars:  !0 = $generated_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtoupper'
          1        INIT_FCALL                                               'substr'
          2        SEND_VAL                                                 'abcdefghijklmnopqrstuvwxyz'
          3        INIT_FCALL                                               'mt_rand'
          4        SEND_VAL                                                 0
          5        SEND_VAL                                                 25
          6        DO_ICALL                                         $1      
          7        SEND_VAR                                                 $1
          8        SEND_VAL                                                 1
          9        DO_ICALL                                         $2      
         10        INIT_FCALL                                               'mt_rand'
         11        SEND_VAL                                                 0
         12        SEND_VAL                                                 9
         13        DO_ICALL                                         $3      
         14        CONCAT                                           ~4      $2, $3
         15        INIT_FCALL                                               'substr'
         16        INIT_FCALL                                               'hash'
         17        SEND_VAL                                                 'sha256'
         18        INIT_FCALL                                               'time'
         19        DO_ICALL                                         $5      
         20        INIT_FCALL                                               'mt_rand'
         21        SEND_VAL                                                 100000
         22        SEND_VAL                                                 999999
         23        DO_ICALL                                         $6      
         24        CONCAT                                           ~7      $5, $6
         25        SEND_VAL                                                 ~7
         26        DO_ICALL                                         $8      
         27        SEND_VAR                                                 $8
         28        SEND_VAL                                                 0
         29        SEND_VAL                                                 6
         30        DO_ICALL                                         $9      
         31        CONCAT                                           ~10     ~4, $9
         32        SEND_VAL                                                 ~10
         33        DO_ICALL                                         $11     
         34        ASSIGN                                                   !0, $11
    5    35        ECHO                                                     !0
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.8 ms | 1396 KiB | 23 Q