3v4l.org

run code in 300+ PHP versions simultaneously
<?php $length = 8; $id = substr(base_convert(md5(uniqid(rand(), true)), 16, 36), 1, $length); print $id;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7gEm4
function name:  (null)
number of ops:  23
compiled vars:  !0 = $length, !1 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 8
    4     1        INIT_FCALL                                               'substr'
          2        INIT_FCALL                                               'base_convert'
          3        INIT_FCALL                                               'md5'
          4        INIT_FCALL                                               'uniqid'
          5        INIT_FCALL                                               'rand'
          6        DO_ICALL                                         $3      
          7        SEND_VAR                                                 $3
          8        SEND_VAL                                                 <true>
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        SEND_VAL                                                 16
         14        SEND_VAL                                                 36
         15        DO_ICALL                                         $6      
         16        SEND_VAR                                                 $6
         17        SEND_VAL                                                 1
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $7      
         20        ASSIGN                                                   !1, $7
    5    21        ECHO                                                     !1
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.11 ms | 1395 KiB | 23 Q