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 = 5, Position 2 = 6
Branch analysis from position: 5
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
Branch analysis from position: 6
filename:       /in/Etnnj
function name:  (null)
number of ops:  21
compiled vars:  !0 = $length, !1 = $symbols, !2 = $grabbag, !3 = $string, !4 = $len
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    1     0  E >   ECHO                                                     '--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------'
    2     1        ASSIGN                                                   !0, 20000
    3     2        ASSIGN                                                   !1, <true>
    4     3        ASSIGN                                                   !2, 'abcdefghijklmnopqrstuvwxyz0123456789'
    5     4      > JMPZ                                                     !1, ->6
    6     5    >   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     6    >   ASSIGN                                                   !3, ''
    9     7        STRLEN                                           ~10     !2
          8        SUB                                              ~11     ~10, 1
          9        ASSIGN                                                   !4, ~11
   10    10      > JMP                                                      ->17
   11    11    >   INIT_FCALL                                               'rand'
         12        SEND_VAL                                                 0
         13        SEND_VAR                                                 !4
         14        DO_ICALL                                         $13     
         15        FETCH_DIM_R                                      ~14     !2, $13
         16        ASSIGN_OP                                     8          !3, ~14
   10    17    >   POST_DEC                                         ~16     !0
         18      > JMPNZ                                                    ~16, ->11
   13    19    >   ECHO                                                     !3
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.92 ms | 1395 KiB | 15 Q