3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.36 ms | 1395 KiB | 15 Q