3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $length = 20; $symbols = false; $grabbag = "abcdefghijklmnopqrstuvwxyz0123456789"; if ($symbols) { $grabbag .= '!@#$%^&*()_+{}-=[]|\\:";\'<,>.?/~`'; } $string = ''; $len = strlen($grabbag)-1; while ($length--) { $string .= $grabbag[rand(0,strlen($grabbag-1))]; } echo $string;
Output for 7.1.0
Warning: A non-numeric value encountered in /in/cZg7J on line 11 Warning: A non-numeric value encountered in /in/cZg7J on line 11 Warning: A non-numeric value encountered in /in/cZg7J on line 11 Warning: A non-numeric value encountered in /in/cZg7J on line 11 Warning: A non-numeric value encountered in /in/cZg7J on line 11 Warning: A non-numeric value encountered in /in/cZg7J on line 11 Warning: A non-numeric value encountered in /in/cZg7J on line 11 Warning: A non-numeric value encountered in /in/cZg7J on line 11 Warning: A non-numeric value encountered in /in/cZg7J on line 11 Warning: A non-numeric value encountered in /in/cZg7J on line 11 Warning: A non-numeric value encountered in /in/cZg7J on line 11 Warning: A non-numeric value encountered in /in/cZg7J on line 11 Warning: A non-numeric value encountered in /in/cZg7J on line 11 Warning: A non-numeric value encountered in /in/cZg7J on line 11 Warning: A non-numeric value encountered in /in/cZg7J on line 11 Warning: A non-numeric value encountered in /in/cZg7J on line 11 Warning: A non-numeric value encountered in /in/cZg7J on line 11 Warning: A non-numeric value encountered in /in/cZg7J on line 11 Warning: A non-numeric value encountered in /in/cZg7J on line 11 Warning: A non-numeric value encountered in /in/cZg7J on line 11 bccbaccabcacabcccbba
Output for 7.0.14
cbbcabcbbabcaaacbbbb
Output for 7.0.6
abccaaaaacbbbbbcaccb
Output for 7.0.5
cbcccabacbcabaccccba
Output for 7.0.4
acacbbbaabbbbbccaabb
Output for 7.0.3
abbaabbcbaabbccabbcb
Output for 7.0.2
babcababbabcccacbccc
Output for 7.0.1
acaccabbacbbacacabba
Output for 7.0.0
bacbbcabaccbbaacbcbc
Output for hhvm-3.12.0
bcbbcbaaacccabcaccbc
Output for hhvm-3.10.0
bcbcccbcaabbabaabccb
Output for 5.6.28
bbabbccbcacbcaaaccca
Output for 5.6.21
cbbcbbbbcbbcaabababb
Output for 5.6.20
caaabcbccbcbbbaaabbc
Output for 5.6.19
cbcbccbbbbbbbaccabba
Output for 5.6.18
ccccaaccaaababaaaaca
Output for 5.6.17
cbccbcccbcbacbcccaaa
Output for 5.6.16
cbaacbaaaccbabccacca
Output for 5.6.15
acabcbbbbbaccccaccbc
Output for 5.6.14
cacacccaccbabacbaaac
Output for 5.6.13
aababacccaabbbcacccb
Output for 5.6.12
ccacbcbbcbcbabbcbaab
Output for 5.6.11
caaacbccabcbcaccbabc
Output for 5.6.10
aaaacbcbbacbbacbbcab
Output for 5.6.9
baaccccaaaccabbbacba
Output for 5.6.8
ccbbbbbbbccbababcbca
Output for 5.5.35
bccaccbcbabbacacacbc
Output for 5.5.34
aacbaacbababccbccbcc
Output for 5.5.33
cabcbcbcbbacaabcacbc
Output for 5.5.32
ccbcbabbaccbabbacaaa
Output for 5.5.31
caacaacbaccbccbabccb
Output for 5.5.30
acacbaaabbccacaaacaa
Output for 5.5.29
aacaacbaababcaaaacbc
Output for 5.5.28
ababcbcbccbcaacacbbb
Output for 5.5.27
abbacbbbcacbbccccbca
Output for 5.5.26
cacbbccbbbbabbcaaacc
Output for 5.5.25
bbcbaacccaabcabbbaba
Output for 5.5.24
bcabcabcaccbcbbccabc
Output for 5.4.45
aaabcbaccbacbaabaaba
Output for 5.4.44
ccbaaacbbbacbcaccbbc
Output for 5.4.43
bcabccaababbcacabcab
Output for 5.4.42
caaabbbcbacbaabbbbca
Output for 5.4.41
bacbaccaccbbaabaabba
Output for 5.4.40
cbbcbbbbcaaaabbcacba
Output for 5.4.39
bacaaaabbbacacacccbc
Output for 5.4.38
acaaaaacaccabccabaab
Output for 5.4.37
babbcbacacccbbcaabab
Output for 5.4.36
accabbbcbbaabacbacac
Output for 5.4.35
baaacabcbcbcabacbacc
Output for 5.4.34
baccbbbaccaaaaabcccb
Output for 5.4.32
acbcaaaccbcbbcbcccba
Output for 5.4.31
ababbcacababcbcabbca
Output for 5.4.30
cbacbbcaacbcccaacbac
Output for 5.4.29
abbbabccbabacabcaabc
Output for 5.4.28
bcacabaacbcaacbcbacb
Output for 5.4.27
abbcbaaacabbabcbaaab
Output for 5.4.26
acccbcaaaaaacabbabca
Output for 5.4.25
acababacbccccbaaacab
Output for 5.4.24
cbabaacaccbaccbcbccb
Output for 5.4.23
bacaaaabcbbabcaaabca
Output for 5.4.22
bacbbbccbccabaaabbbb
Output for 5.4.21
aabccacaccaabcccabbc
Output for 5.4.20
acccacbabbbccabbcbaa
Output for 5.4.19
bccbcbbcbcbcbabbabaa
Output for 5.4.18
bacccccbcbbbbaabbbca
Output for 5.4.17
acabbacacabbcacaaccc
Output for 5.4.16
bacccbbabccbbbaacaba
Output for 5.4.15
accbababbccbbacacbac
Output for 5.4.14
caacacbaccbbaaacbcba
Output for 5.4.13
bcbcaaccabbaaabbcbcc
Output for 5.4.12
abcbbcaaaaaccbcaccbc
Output for 5.4.11
bbcabccacbbaaacaacac
Output for 5.4.10
acacabcbabcbccbbcccc
Output for 5.4.9
cbbbcaabcbaacbaccbbb
Output for 5.4.8
acbcacccbcabaacbaacc
Output for 5.4.7
cccccaacbbaaacaacbbc
Output for 5.4.6
ccbbabcbccaaabacbcaa
Output for 5.4.5
bbcabcacabacbccbacba
Output for 5.4.4
caabaaccaacbaabababa
Output for 5.4.3
aaccbcacbaabbcabccba
Output for 5.4.2
cccbbcbcbcabcabcbaab
Output for 5.4.1
cbbccaabbcbcaaccbacc
Output for 5.4.0
abbbaccccbaacaaccbac
Output for 5.3.29
aabacbbaabacacbbacca
Output for 5.3.28
aacabbcbaabaaabaacac
Output for 5.3.27
ccbcbcabaccccabcccab
Output for 5.3.26
baaaabaaaacbbbbcbacc
Output for 5.3.25
babbbacccababcaabcba
Output for 5.3.24
caaaaaabaaaccabcabca
Output for 5.3.23
aacaabbcbcccaabaabcb
Output for 5.3.22
abbbbbacabcaaacbacba
Output for 5.3.21
baabacaacbcabaccabaa
Output for 5.3.20
bccbbabaaababbaccbca
Output for 5.3.19
ababacabbcaaaaccbcac
Output for 5.3.18
bbbcabacaccabcccbcca
Output for 5.3.17
bcbcbbbabcabacaabbbb
Output for 5.3.16
aaabababccbbbbacaaab
Output for 5.3.15
babbcacbbbccaabccaca
Output for 5.3.14
caabccccbaccccaaaaab
Output for 5.3.13
aacbbacbababbbbbcbbc
Output for 5.3.12
ccaccbcacabbccaaaabc
Output for 5.3.11
abbcabbcccacabbababa
Output for 5.3.10
cccbabbbcbcbbacabccb
Output for 5.3.9
caccbcabaaaccaacaccc
Output for 5.3.8
aabbabaccccaccacbbbc
Output for 5.3.7
cbbccbbccaaacaccbbac
Output for 5.3.6
bacbbbccbabaaaacccca
Output for 5.3.5
cbabbcccbabcabbabcca
Output for 5.3.4
aaacacaccccabcccacac
Output for 5.3.3
cbcbacbacbababbabcba
Output for 5.3.2
acccabaabccbaabababb
Output for 5.3.1
acabbbabccbbbabcccbb
Output for 5.3.0
cabbacccbbabbbbbbabc
Output for 5.2.17
acbacaaabcccbcacccaa
Output for 5.2.16
bacabccbacabbbcaabab
Output for 5.2.15
baccacabaacabcaabbbc
Output for 5.2.14
ccacccbaaabacaabbcab
Output for 5.2.13
cbaaaabcbaccccbaabcb
Output for 5.2.12
cbaaaacacbaacabcacba
Output for 5.2.11
babbcacaccaacbbcbabc
Output for 5.2.10
bacaababaabcbaabccbb
Output for 5.2.9
cbcccccccbbccacabcca
Output for 5.2.8
caaaabaccaccbaacbbac
Output for 5.2.7
acbbcbcbbccccabccaba
Output for 5.2.6
cbaaabbaaccacccbacab
Output for 5.2.5
aabaacbacabccbbaaccc
Output for 5.2.4
abbccbbcaccbbabababc
Output for 5.2.3
accccbbcccccbcabcaba
Output for 5.2.2
aaaaacbbbaacabaaacaa
Output for 5.2.1
acbaaacaccababcbaabb
Output for 5.2.0
bbbbbbbcbbaaaaabbccb
Output for 5.1.6
ccbcabcabcacbcaabaca
Output for 5.1.5
acbacabaacbacbbacbcb
Output for 5.1.4
ccaaaabbcabbaaaaaccb
Output for 5.1.3
bcbcaaacbcacbcaacacb
Output for 5.1.2
cbaabcaccacaaacbabab
Output for 5.1.1
bacacbaacaccbcbbabcb
Output for 5.1.0
ccbbababcaacbabcbaac
Output for 5.0.5
accabcbbcaaabcbcaacc
Output for 5.0.4
bbccaaabacaacbaaaabc
Output for 5.0.3
ccbaccbccbbcacaababb
Output for 5.0.2
abaaccabaacbaccaccab
Output for 5.0.1
babababaacbcacbcabaa
Output for 5.0.0
ccccaabcaaaabbbcaaca
Output for 4.4.9
babbcbaaababaabcabcc
Output for 4.4.8
caccccaaacacaaaacbba
Output for 4.4.7
bcbcbabbabaabcaabbbb
Output for 4.4.6
cabbbabbacabaccacacc
Output for 4.4.5
bbaabcccccacccbccccb
Output for 4.4.4
cbbbaacabcbbacaccbbc
Output for 4.4.3
accbacccbacbbcaaccac
Output for 4.4.2
bbacbbacbaacccacbcaa
Output for 4.4.1
bcbababccbacaaccaacb
Output for 4.4.0
abcaacaaaccbcbacacac
Output for 4.3.11
aaacbabcacaaccabbcaa
Output for 4.3.10
baaaabccaacabaabbbba
Output for 4.3.9
caaaaabaaccaabcbabbc
Output for 4.3.8
abbbcbcaaacacbccabbb
Output for 4.3.7
bccbcbbcccbcabaacbba
Output for 4.3.6
ccccbaaaccaaaabbbcaa
Output for 4.3.5
cbaabbbccabccccbbbaa
Output for 4.3.4
babbcbbaacccbbccbacb
Output for 4.3.3
abaacbacaaaaccccccaa
Output for 4.3.2
bacbacacaacbcbabcabb
Output for 4.3.1
caccaccbbaaacaccbcca
Output for 4.3.0
caacbcbacaaccbacaccb