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('a0b1c2d3e4f5g6h7i8j9k0l!m@n#o$p%q^r&s*t(u)v_w-x=y+z[A}B]C|D/EFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+{}:|\<>?'); //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)."<BR>"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 2
Branch analysis from position: 18
Branch analysis from position: 2
filename:       /in/YU52p
function name:  (null)
number of ops:  19
compiled vars:  !0 = $i, !1 = $randomlettersnumbers, !2 = $randcomb, !3 = $randomlettersnumbers2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->16
    6     2    >   INIT_FCALL                                               'str_shuffle'
          3        SEND_VAL                                                 'a0b1c2d3e4f5g6h7i8j9k0l%21m%40n%23o%24p%25q%5Er%26s%2At%28u%29v_w-x%3Dy%2Bz%5BA%7DB%5DC%7CD%2FEFGHIJKLMNOPQRSTUVWXYZ0123456789%21%40%23%24%25%5E%26%2A%28%29_%2B%7B%7D%3A%7C%5C%3C%3E%3F'
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    7     6        CONCAT                                           ~7      !1, !3
          7        ASSIGN                                                   !2, ~7
   17     8        INIT_FCALL                                               'substr'
          9        SEND_VAR                                                 !2
         10        SEND_VAL                                                 0
         11        SEND_VAL                                                 6
         12        DO_ICALL                                         $9      
         13        CONCAT                                           ~10     $9, '%3CBR%3E'
         14        ECHO                                                     ~10
    5    15        ASSIGN_OP                                     1          !0, 1
         16    >   IS_SMALLER_OR_EQUAL                                      !0, 10
         17      > JMPNZ                                                    ~12, ->2
   18    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.97 ms | 1395 KiB | 17 Q