3v4l.org

run code in 300+ PHP versions simultaneously
<?php $randomId = crypt(uniqid(rand(), 1)); $randomId = str_replace('.', '', $randomId); $randomId = strrev(str_replace('/', '', $randomId)); $randomId = substr($randomId, 0, 10); echo $randomId;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3RDtV
function name:  (null)
number of ops:  33
compiled vars:  !0 = $randomId
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'crypt'
          1        INIT_FCALL                                               'uniqid'
          2        INIT_FCALL                                               'rand'
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        SEND_VAL                                                 1
          6        DO_ICALL                                         $2      
          7        SEND_VAR                                                 $2
          8        DO_ICALL                                         $3      
          9        ASSIGN                                                   !0, $3
    3    10        INIT_FCALL                                               'str_replace'
         11        SEND_VAL                                                 '.'
         12        SEND_VAL                                                 ''
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $5      
         15        ASSIGN                                                   !0, $5
    4    16        INIT_FCALL                                               'strrev'
         17        INIT_FCALL                                               'str_replace'
         18        SEND_VAL                                                 '%2F'
         19        SEND_VAL                                                 ''
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                         $7      
         22        SEND_VAR                                                 $7
         23        DO_ICALL                                         $8      
         24        ASSIGN                                                   !0, $8
    5    25        INIT_FCALL                                               'substr'
         26        SEND_VAR                                                 !0
         27        SEND_VAL                                                 0
         28        SEND_VAL                                                 10
         29        DO_ICALL                                         $10     
         30        ASSIGN                                                   !0, $10
    7    31        ECHO                                                     !0
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.82 ms | 1387 KiB | 25 Q