3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i = 0; $i <= 10; $i += 1) { //loop to calculate parameters for substr $randomlettersnumbers = str_shuffle('abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'); //creates a shuffled alphanumeric string $randomlettersnumbers2 = str_shuffle('0123456789!@#$%^&*()_+{}:|\<>?'); //creates a shuffled alphanumeric string $randcomb = $randomlettersnumbers.$randomlettersnumbers2; //$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 = 2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 2
Branch analysis from position: 21
Branch analysis from position: 2
filename:       /in/EWUIh
function name:  (null)
number of ops:  22
compiled vars:  !0 = $i, !1 = $randomlettersnumbers, !2 = $randomlettersnumbers2, !3 = $randcomb
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->19
    6     2    >   INIT_FCALL                                               'str_shuffle'
          3        SEND_VAL                                                 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    7     6        INIT_FCALL                                               'str_shuffle'
          7        SEND_VAL                                                 '0123456789%21%40%23%24%25%5E%26%2A%28%29_%2B%7B%7D%3A%7C%5C%3C%3E%3F'
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !2, $7
    8    10        CONCAT                                           ~9      !1, !2
         11        ASSIGN                                                   !3, ~9
   18    12        INIT_FCALL                                               'substr'
         13        SEND_VAR                                                 !3
         14        SEND_VAL                                                 0
         15        SEND_VAL                                                 6
         16        DO_ICALL                                         $11     
         17        ECHO                                                     $11
    5    18        ASSIGN_OP                                     1          !0, 1
         19    >   IS_SMALLER_OR_EQUAL                                      !0, 10
         20      > JMPNZ                                                    ~13, ->2
   19    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.77 ms | 1395 KiB | 17 Q