3v4l.org

run code in 300+ PHP versions simultaneously
<?php $randomlettersnumbers = str_shuffle('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'); //creates a shuffled alphanumeric string $randomlettersnumbers2 = str_shuffle('0123456789!@#$%^&*()_+{}:|\<>?'); //creates a shuffled alphanumeric string $randcomb = $randomlettersnumbers.$randomlettersnumbers2; for($i = 0; $i <= 62; $i += 6) { //loop to calculate parameters for substr $param1 = ($i+6) - 6; //this formula ensures all integers are positive and above zero $param2 = $param1 + 6; // this formula ensures all integers increment by 6 spaces if($param2 >= 60) { //since the second parameter goes over 60 $param2 = ($param1 + 6) - 6; //subtract 6 } $key = substr($randcomb, $param1, $param2); //generate random key echo $key."<BR>"; //display it for debugging }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 12
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 22
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 12
Branch analysis from position: 33
Branch analysis from position: 12
Branch analysis from position: 22
filename:       /in/KGl9R
function name:  (null)
number of ops:  34
compiled vars:  !0 = $randomlettersnumbers, !1 = $randomlettersnumbers2, !2 = $randcomb, !3 = $i, !4 = $param1, !5 = $param2, !6 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'str_shuffle'
          1        SEND_VAL                                                 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
          2        DO_ICALL                                         $7      
          3        ASSIGN                                                   !0, $7
    4     4        INIT_FCALL                                               'str_shuffle'
          5        SEND_VAL                                                 '0123456789%21%40%23%24%25%5E%26%2A%28%29_%2B%7B%7D%3A%7C%5C%3C%3E%3F'
          6        DO_ICALL                                         $9      
          7        ASSIGN                                                   !1, $9
    5     8        CONCAT                                           ~11     !0, !1
          9        ASSIGN                                                   !2, ~11
    8    10        ASSIGN                                                   !3, 0
         11      > JMP                                                      ->31
    9    12    >   ADD                                              ~14     !3, 6
         13        SUB                                              ~15     ~14, 6
         14        ASSIGN                                                   !4, ~15
   10    15        ADD                                              ~17     !4, 6
         16        ASSIGN                                                   !5, ~17
   12    17        IS_SMALLER_OR_EQUAL                                      60, !5
         18      > JMPZ                                                     ~19, ->22
   13    19    >   ADD                                              ~20     !4, 6
         20        SUB                                              ~21     ~20, 6
         21        ASSIGN                                                   !5, ~21
   16    22    >   INIT_FCALL                                               'substr'
         23        SEND_VAR                                                 !2
         24        SEND_VAR                                                 !4
         25        SEND_VAR                                                 !5
         26        DO_ICALL                                         $23     
         27        ASSIGN                                                   !6, $23
   17    28        CONCAT                                           ~25     !6, '%3CBR%3E'
         29        ECHO                                                     ~25
    8    30        ASSIGN_OP                                     1          !3, 6
         31    >   IS_SMALLER_OR_EQUAL                                      !3, 62
         32      > JMPNZ                                                    ~27, ->12
   18    33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.21 ms | 1396 KiB | 17 Q