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 <= 10; $i += 1) { //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 echo substr($randcomb, 0,6); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 12
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 12
Branch analysis from position: 21
Branch analysis from position: 12
filename:       /in/DFTuC
function name:  (null)
number of ops:  22
compiled vars:  !0 = $randomlettersnumbers, !1 = $randomlettersnumbers2, !2 = $randcomb, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'str_shuffle'
          1        SEND_VAL                                                 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
          2        DO_ICALL                                         $4      
          3        ASSIGN                                                   !0, $4
    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                                         $6      
          7        ASSIGN                                                   !1, $6
    5     8        CONCAT                                           ~8      !0, !1
          9        ASSIGN                                                   !2, ~8
    8    10        ASSIGN                                                   !3, 0
         11      > JMP                                                      ->19
   18    12    >   INIT_FCALL                                               'substr'
         13        SEND_VAR                                                 !2
         14        SEND_VAL                                                 0
         15        SEND_VAL                                                 6
         16        DO_ICALL                                         $11     
         17        ECHO                                                     $11
    8    18        ASSIGN_OP                                     1          !3, 1
         19    >   IS_SMALLER_OR_EQUAL                                      !3, 10
         20      > JMPNZ                                                    ~13, ->12
   19    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.4 ms | 1395 KiB | 17 Q