3v4l.org

run code in 300+ PHP versions simultaneously
<?php $length = 32; $alpa = "abcdefghijklmnopqrstuvwxyz";$alpa.=strtoupper($alpa); $alpa.="1234567890";$alpa=str_split($alpa); $pass=""; foreach($alpa as $a){ $pass.=str_repeat($a,floor(sqrt(max(rand(0,22)-5,0)))); } $pass = str_split($pass);shuffle($pass);$pass=implode($pass); $r = rand(0,strlen($pass)-$length); echo substr($pass,$r,$length);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 35
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 35
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
filename:       /in/fdKVb
function name:  (null)
number of ops:  61
compiled vars:  !0 = $length, !1 = $alpa, !2 = $pass, !3 = $a, !4 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 32
    3     1        ASSIGN                                                   !1, 'abcdefghijklmnopqrstuvwxyz'
          2        INIT_FCALL                                               'strtoupper'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $7      
          5        ASSIGN_OP                                     8          !1, $7
    4     6        ASSIGN_OP                                     8          !1, '1234567890'
          7        INIT_FCALL                                               'str_split'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $10     
         10        ASSIGN                                                   !1, $10
    5    11        ASSIGN                                                   !2, ''
    6    12      > FE_RESET_R                                       $13     !1, ->35
         13    > > FE_FETCH_R                                               $13, !3, ->35
    7    14    >   INIT_FCALL                                               'str_repeat'
         15        SEND_VAR                                                 !3
         16        INIT_FCALL                                               'floor'
         17        INIT_FCALL                                               'sqrt'
         18        INIT_FCALL                                               'max'
         19        INIT_FCALL                                               'rand'
         20        SEND_VAL                                                 0
         21        SEND_VAL                                                 22
         22        DO_ICALL                                         $14     
         23        SUB                                              ~15     $14, 5
         24        SEND_VAL                                                 ~15
         25        SEND_VAL                                                 0
         26        DO_ICALL                                         $16     
         27        SEND_VAR                                                 $16
         28        DO_ICALL                                         $17     
         29        SEND_VAR                                                 $17
         30        DO_ICALL                                         $18     
         31        SEND_VAR                                                 $18
         32        DO_ICALL                                         $19     
         33        ASSIGN_OP                                     8          !2, $19
    6    34      > JMP                                                      ->13
         35    >   FE_FREE                                                  $13
    9    36        INIT_FCALL                                               'str_split'
         37        SEND_VAR                                                 !2
         38        DO_ICALL                                         $21     
         39        ASSIGN                                                   !2, $21
         40        INIT_FCALL                                               'shuffle'
         41        SEND_REF                                                 !2
         42        DO_ICALL                                                 
         43        INIT_FCALL                                               'implode'
         44        SEND_VAR                                                 !2
         45        DO_ICALL                                         $24     
         46        ASSIGN                                                   !2, $24
   10    47        INIT_FCALL                                               'rand'
         48        SEND_VAL                                                 0
         49        STRLEN                                           ~26     !2
         50        SUB                                              ~27     ~26, !0
         51        SEND_VAL                                                 ~27
         52        DO_ICALL                                         $28     
         53        ASSIGN                                                   !4, $28
   11    54        INIT_FCALL                                               'substr'
         55        SEND_VAR                                                 !2
         56        SEND_VAR                                                 !4
         57        SEND_VAR                                                 !0
         58        DO_ICALL                                         $30     
         59        ECHO                                                     $30
         60      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.77 ms | 1392 KiB | 33 Q