3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.77 ms | 1400 KiB | 27 Q