3v4l.org

run code in 300+ PHP versions simultaneously
<?php $chars = "023456789ABCDEFGHJKLM023456789NPQRSTUVWXYZ023456789"; srand( (double) microtime() * 1000000 ); $i = 0; $temppassword = ''; while ( $i <= 4096 ) { $num = rand() % strlen( $chars ); $tmp = substr( $chars, $num, 1 ); $temppassword = $temppassword . $tmp; $i++; } echo $temppassword;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 11
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 11
Branch analysis from position: 27
Branch analysis from position: 11
filename:       /in/oXSkf
function name:  (null)
number of ops:  29
compiled vars:  !0 = $chars, !1 = $i, !2 = $temppassword, !3 = $num, !4 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '023456789ABCDEFGHJKLM023456789NPQRSTUVWXYZ023456789'
    4     1        INIT_FCALL                                               'srand'
          2        INIT_FCALL                                               'microtime'
          3        DO_ICALL                                         $6      
          4        CAST                                          5  ~7      $6
          5        MUL                                              ~8      ~7, 1000000
          6        SEND_VAL                                                 ~8
          7        DO_ICALL                                                 
    5     8        ASSIGN                                                   !1, 0
    6     9        ASSIGN                                                   !2, ''
    7    10      > JMP                                                      ->25
    8    11    >   INIT_FCALL                                               'rand'
         12        DO_ICALL                                         $12     
         13        STRLEN                                           ~13     !0
         14        MOD                                              ~14     $12, ~13
         15        ASSIGN                                                   !3, ~14
    9    16        INIT_FCALL                                               'substr'
         17        SEND_VAR                                                 !0
         18        SEND_VAR                                                 !3
         19        SEND_VAL                                                 1
         20        DO_ICALL                                         $16     
         21        ASSIGN                                                   !4, $16
   10    22        CONCAT                                           ~18     !2, !4
         23        ASSIGN                                                   !2, ~18
   11    24        PRE_INC                                                  !1
    7    25    >   IS_SMALLER_OR_EQUAL                                      !1, 4096
         26      > JMPNZ                                                    ~21, ->11
   13    27    >   ECHO                                                     !2
         28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.15 ms | 1396 KiB | 21 Q