3v4l.org

run code in 300+ PHP versions simultaneously
<?php $generated_id = 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/sujpf
function name:  (null)
number of ops:  34
compiled vars:  !0 = $generated_id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'substr'
          1        SEND_VAL                                                 'abcdefghijklmnopqrstuvwxyz'
          2        INIT_FCALL                                               'mt_rand'
          3        SEND_VAL                                                 0
          4        SEND_VAL                                                 25
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        SEND_VAL                                                 1
          8        DO_ICALL                                         $2      
          9        INIT_FCALL                                               'mt_rand'
         10        SEND_VAL                                                 0
         11        SEND_VAL                                                 9
         12        DO_ICALL                                         $3      
         13        CONCAT                                           ~4      $2, $3
         14        INIT_FCALL                                               'substr'
         15        INIT_FCALL                                               'hash'
         16        SEND_VAL                                                 'sha256'
         17        INIT_FCALL                                               'time'
         18        DO_ICALL                                         $5      
         19        INIT_FCALL                                               'mt_rand'
         20        SEND_VAL                                                 100000
         21        SEND_VAL                                                 999999
         22        DO_ICALL                                         $6      
         23        CONCAT                                           ~7      $5, $6
         24        SEND_VAL                                                 ~7
         25        DO_ICALL                                         $8      
         26        SEND_VAR                                                 $8
         27        SEND_VAL                                                 0
         28        SEND_VAL                                                 6
         29        DO_ICALL                                         $9      
         30        CONCAT                                           ~10     ~4, $9
         31        ASSIGN                                                   !0, ~10
    5    32        ECHO                                                     !0
         33      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.28 ms | 1396 KiB | 21 Q