3v4l.org

run code in 300+ PHP versions simultaneously
<?php $length = 20; $symbols = false; $grabbag = "abcdefghijklmnopqrstuvwxyz0123456789"; if ($symbols) { $grabbag .= '!@#$%^&*()_+{}-=[]|\\:";\'<,>.?/~`'; } $string = ''; while ($length--) { $string .= $grabbag[rand(0,strlen($grabbag))]; } 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 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 7
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 7
Branch analysis from position: 16
Branch analysis from position: 7
Branch analysis from position: 5
filename:       /in/RpBR3
function name:  (null)
number of ops:  18
compiled vars:  !0 = $length, !1 = $symbols, !2 = $grabbag, !3 = $string
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      > JMP                                                      ->14
   10     7    >   INIT_FCALL                                               'rand'
          8        SEND_VAL                                                 0
          9        STRLEN                                           ~9      !2
         10        SEND_VAL                                                 ~9
         11        DO_ICALL                                         $10     
         12        FETCH_DIM_R                                      ~11     !2, $10
         13        ASSIGN_OP                                     8          !3, ~11
    9    14    >   POST_DEC                                         ~13     !0
         15      > JMPNZ                                                    ~13, ->7
   12    16    >   ECHO                                                     !3
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.24 ms | 1386 KiB | 15 Q