3v4l.org

run code in 300+ PHP versions simultaneously
<?php function random8CharString() { $chars = "abcdefghijkmnopqrstuvwxyz023456789"; srand((double) microtime() * 1000000); $pass = ''; for ($i = 0; $i <= 7; ++$i) { $pass .= $chars[rand() % 33]; } return $pass; } echo random8CharString();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/r1CuO
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'random8charstring'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
          3      > RETURN                                                   1

Function random8charstring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 11
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 11
Branch analysis from position: 19
Branch analysis from position: 11
filename:       /in/r1CuO
function name:  random8CharString
number of ops:  21
compiled vars:  !0 = $chars, !1 = $pass, !2 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 'abcdefghijkmnopqrstuvwxyz023456789'
    6     1        INIT_FCALL                                               'srand'
          2        INIT_FCALL                                               'microtime'
          3        DO_ICALL                                         $4      
          4        CAST                                          5  ~5      $4
          5        MUL                                              ~6      ~5, 1000000
          6        SEND_VAL                                                 ~6
          7        DO_ICALL                                                 
    8     8        ASSIGN                                                   !1, ''
    9     9        ASSIGN                                                   !2, 0
         10      > JMP                                                      ->17
   10    11    >   INIT_FCALL                                               'rand'
         12        DO_ICALL                                         $10     
         13        MOD                                              ~11     $10, 33
         14        FETCH_DIM_R                                      ~12     !0, ~11
         15        ASSIGN_OP                                     8          !1, ~12
    9    16        PRE_INC                                                  !2
         17    >   IS_SMALLER_OR_EQUAL                                      !2, 7
         18      > JMPNZ                                                    ~15, ->11
   12    19    > > RETURN                                                   !1
   13    20*     > RETURN                                                   null

End of function random8charstring

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
126.83 ms | 1016 KiB | 17 Q