3v4l.org

run code in 300+ PHP versions simultaneously
<?php $length = 20; $symbols = false; $grabbag = "abcdefghijklmnopqrstuvwxyz0123456789"; if ($symbols) { $grabbag .= '!@#$%^&*()_+{}-=[]|\\:";\'<,>.?/~`'; } $string = ''; $len = strlen($grabbag)-1; while ($length--) { $string .= $grabbag[rand(0,strlen($grabbag-1))]; } echo $string;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 10
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 10
Branch analysis from position: 20
Branch analysis from position: 10
Branch analysis from position: 5
filename:       /in/cZg7J
function name:  (null)
number of ops:  22
compiled vars:  !0 = $length, !1 = $symbols, !2 = $grabbag, !3 = $string, !4 = $len
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 20
    3     1        ASSIGN                                                   !1, <false>
    4     2        ASSIGN                                                   !2, 'abcdefghijklmnopqrstuvwxyz0123456789'
    5     3      > JMPZ                                                     !1, ->5
    6     4    >   ASSIGN_OP                                     8          !2, '%21%40%23%24%25%5E%26%2A%28%29_%2B%7B%7D-%3D%5B%5D%7C%5C%3A%22%3B%27%3C%2C%3E.%3F%2F%7E%60'
    8     5    >   ASSIGN                                                   !3, ''
    9     6        STRLEN                                           ~10     !2
          7        SUB                                              ~11     ~10, 1
          8        ASSIGN                                                   !4, ~11
   10     9      > JMP                                                      ->18
   11    10    >   INIT_FCALL                                               'rand'
         11        SEND_VAL                                                 0
         12        SUB                                              ~13     !2, 1
         13        STRLEN                                           ~14     ~13
         14        SEND_VAL                                                 ~14
         15        DO_ICALL                                         $15     
         16        FETCH_DIM_R                                      ~16     !2, $15
         17        ASSIGN_OP                                     8          !3, ~16
   10    18    >   POST_DEC                                         ~18     !0
         19      > JMPNZ                                                    ~18, ->10
   13    20    >   ECHO                                                     !3
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.64 ms | 1400 KiB | 15 Q