3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $length = 20; $symbols = false; $grabbag = "abcdefghijklmnopqrstuvwxyz0123456789"; if ($symbols) { $grabbag .= '!@#$%^&*()_+{}-=[]|\\:";\'<,>.?/~`'; } $string = ''; while ($length--) { $string .= $grabbag[rand(0,count($grabbag))]; } echo $string;
Output for 7.1.0
bbabbababbbababbabaa
Output for 7.0.14
ababbababababbbabbba
Output for 7.0.6
aaaaaaabababbabbaabb
Output for 7.0.5
bbabbaabbbbbbbbbbaab
Output for 7.0.4
bbababbaababbbaabaaa
Output for 7.0.3
abbbbbbaabbabbbabbab
Output for 7.0.2
aabbbaababbbbababbbb
Output for 7.0.1
bbabaabbbbabaaababbb
Output for 7.0.0
bababbabbababbaaabaa
Output for hhvm-3.12.0
bbbbabaabbbbbaabaaab
Output for hhvm-3.10.0
ababaaaabbbaabaaaabb
Output for 5.6.28
bababbabbabaabbbbaab
Output for 5.6.21
ababaabaaabaabbaaaab
Output for 5.6.20
abbabaaaabbbbaabaaaa
Output for 5.6.19
bababababaaabbaababb
Output for 5.6.18
ababbaabbaabaaabaaba
Output for 5.6.17
aaaababbababbbbbabaa
Output for 5.6.16
bababbabbbbbbaaaaabb
Output for 5.6.15
abbaabbbbabaabbaaaab
Output for 5.6.14
abbbbaababbbabaabaaa
Output for 5.6.13
bbbabbababaaababaabb
Output for 5.6.12
baabbabaaababababaaa
Output for 5.6.11
bbaabaaabababbabaaba
Output for 5.6.10
aaaaabbaaabaaaaaaaba
Output for 5.6.9
aabbbaabbbbaababbaaa
Output for 5.6.8
abbbbbbbabbabababbbb
Output for 5.6.7
bababbaaaaababbbbaaa
Output for 5.5.35
abbbbbbbbaabbbbbabba
Output for 5.5.34
bbbbbaaaabbbabbaabbb
Output for 5.5.33
bababaabbbaaabbaaaba
Output for 5.5.32
bababababbaaaaaababa
Output for 5.5.31
bbbabbbabaabaaabaaaa
Output for 5.5.30
abbabababbbababaabbb
Output for 5.5.29
abbbaabaaaaaabbbabbb
Output for 5.5.28
bbbbaabaaabaaaabbbab
Output for 5.5.27
aababbbbbabbababaaaa
Output for 5.5.26
bbabbbaaaaabbbaabbba
Output for 5.5.25
aaabbbabaaaaabbbabba
Output for 5.5.24
babbaaabaaabaabababa
Output for 5.4.45
aabaabbabbbaaabbabaa
Output for 5.4.44
abbaababbaababbabbba
Output for 5.4.43
aaaaaaaaaabaabbaabbb
Output for 5.4.42
bbaabbbbabaabbabaaaa
Output for 5.4.41
aaabbababbbabbaababa
Output for 5.4.40
abbbbabababaaaabbbba
Output for 5.4.39
baaabaabbbbaaaaaabbb
Output for 5.4.38
baabbabaaabaaaababba
Output for 5.4.37
aaaaabaabbabbbabbaba
Output for 5.4.36
aaabbaaaaabababbbbbb
Output for 5.4.35
aaaaaabbbaaabaaababa
Output for 5.4.34
baaaabaaabbbaaaabaab
Output for 5.4.32
babbababaaaabbaabbba
Output for 5.4.31
abbbabababbbbaaaabbb
Output for 5.4.30
baaaabbbababaababaab
Output for 5.4.29
bbaaaabaaaaabaaabaaa
Output for 5.4.28
bbabaaaababaabbbabbb
Output for 5.4.27
bbabababaabbabbabaaa
Output for 5.4.26
baaabbbabaaababbbabb
Output for 5.4.25
bbaabbbabbbabaabaaab
Output for 5.4.24
ababaaabbaaaabbbbabb
Output for 5.4.23
bbbabbaaaaaababbabab
Output for 5.4.22
babbbbbbbabbaaaaabaa
Output for 5.4.21
baabbabbababbbabaabb
Output for 5.4.20
ababaabaababbabbbaaa
Output for 5.4.19
baaaababaaabaabaabab
Output for 5.4.18
aaaaabaaaaabaabbabab
Output for 5.4.17
abbababbbbaabbaababb
Output for 5.4.16
bbabbaabbbbbbbbbaabb
Output for 5.4.15
aaababbababbabbbaaab
Output for 5.4.14
babaaaabbaaabaaaaaaa
Output for 5.4.13
aabaaabaaababbaabaab
Output for 5.4.12
abaaabababaaaaabbaba
Output for 5.4.11
aabbabaabbaaaaaababa
Output for 5.4.10
ababbbbaabbbaaaaabba
Output for 5.4.9
abaaabbaababbabaaabb
Output for 5.4.8
abaaaaaaaababbbbaaba
Output for 5.4.7
baabaabaabbbaaabbaab
Output for 5.4.6
bbabaaababaabbaabbbb
Output for 5.4.5
baaaabaabbabbabbbbab
Output for 5.4.4
bbbaababaaaaababbaaa
Output for 5.4.3
aaaabbaaabaaaabbabbb
Output for 5.4.2
bbbaaabaaabbababbbba
Output for 5.4.1
baaaaaaaaababbaaaaab
Output for 5.4.0
bbbbbaaabbbbbbaabaaa
Output for 5.3.29
babbabbababaaaaaabba
Output for 5.3.28
abbaabbaaabbbbbaaabb
Output for 5.3.27
bbabbbbbabbbbbbabbba
Output for 5.3.26
aaaaaaababbaaabaabaa
Output for 5.3.25
abbaabbbaabaaaabaaaa
Output for 5.3.24
baabbaaabaabababaaba
Output for 5.3.23
aabbbaaabaabbababbbb
Output for 5.3.22
bbabbbabaabbababaaaa
Output for 5.3.21
abbababaabababbababb
Output for 5.3.20
babbbbbbaabbaababbab
Output for 5.3.19
ababaaabbabaabbaabab
Output for 5.3.18
aababbaaaabbaabbbaab
Output for 5.3.17
babbabaababbbaabbbaa
Output for 5.3.16
bbbaabbababbabaabbaa
Output for 5.3.15
ababaabbbaabaaaaabab
Output for 5.3.14
babbaabaabbbabaaaabb
Output for 5.3.13
bababbbabbbabbabbaab
Output for 5.3.12
aabaabababbbaaaabbbb
Output for 5.3.11
abaabbbbabababbaaaab
Output for 5.3.10
babaaaabbbbbabbababb
Output for 5.3.9
bbbaabaaaaaababbbbbb
Output for 5.3.8
baabaabaababaaabbaaa
Output for 5.3.7
abaaaabaaaaaababbbab
Output for 5.3.6
baaaabbbabbbbbabbaba
Output for 5.3.5
bbbbaabbbbbbbabababa
Output for 5.3.4
aaababbbababbaaabbbb
Output for 5.3.3
abbabbbaaaabaaabaaba
Output for 5.3.2
babaaaabaaabaabababb
Output for 5.3.1
ababbabbbbaaabaaabab
Output for 5.3.0
aabaaaabbabaabbaabba
Output for 5.2.17
bbbabaaabaaabaaaaaaa
Output for 5.2.16
aababaababbbaaaababb
Output for 5.2.15
bbbaaaaabababbbababa
Output for 5.2.14
abababaaaabbababaaba
Output for 5.2.13
aababbaaaabaaabbaaba
Output for 5.2.12
babaababbababaabbbba
Output for 5.2.11
bbaaaabbababaabbbbaa
Output for 5.2.10
aabbbbabaabbbabbaaab
Output for 5.2.9
bbaaababababababaaaa
Output for 5.2.8
bbbaababaaabaababbaa
Output for 5.2.7
bbabaababaaaabbbbabb
Output for 5.2.6
aabbbbbbaabbabbabbab
Output for 5.2.5
abaaababbaababbabbba
Output for 5.2.4
babaabbaabbbbabbabab
Output for 5.2.3
aaaabbbabbbaaaabbaab
Output for 5.2.2
abaaaaaabaaabbbbabab
Output for 5.2.1
aabbaaaabaabababbabb
Output for 5.2.0
abaaaababbabbabbabbb
Output for 5.1.6
baaababaaaaabaaabbba
Output for 5.1.5
aaaabaaaaaabbbaabbab
Output for 5.1.4
ababbbabbaabababaaab
Output for 5.1.3
bbabbaabaaaabbabbabb
Output for 5.1.2
abbbbabbbabbabbababb
Output for 5.1.1
baabaabbaaabbaaaabba
Output for 5.1.0
babbabaaaabababbaabb
Output for 5.0.5
aaabbabbabbbbaabbbbb
Output for 5.0.4
aabaaabbabaaaabaaaab
Output for 5.0.3
abbbbabaababaaababbb
Output for 5.0.2
abaaababbabaababbaab
Output for 5.0.1
babaabaaaababbaabbbb
Output for 5.0.0
abaaabbbaaaabbbbbaba
Output for 4.4.9
bbbabbbbababababaaab
Output for 4.4.8
aaabbbbaaababaabbbaa
Output for 4.4.7
baaababaabaaabababba
Output for 4.4.6
baaabaaaaaaabbbabbbb
Output for 4.4.5
aaaaaaaababbbabbbbab
Output for 4.4.4
aaaabababbbabaaabbba
Output for 4.4.3
baabbabbbabbabbbaaab
Output for 4.4.2
abbabbbaaaaabaaabbab
Output for 4.4.1
babaaababaaaabbaabab
Output for 4.4.0
bbbabaaaabaabbabbbaa
Output for 4.3.11
aaaaababbabaabababba
Output for 4.3.10
bbbaaabaabbabbbaabaa
Output for 4.3.9
aaababbabaaabaababbb
Output for 4.3.8
abaaaabababbaaabaaba
Output for 4.3.7
aaabaabbbbbbabaabbaa
Output for 4.3.6
baabbaaabababaabbabb
Output for 4.3.5
babaabaaababbbbbaabb
Output for 4.3.4
bbbaabbbabaaabbabbab
Output for 4.3.3
aaaabbaaabbabaababaa
Output for 4.3.2
abaabaabbbbbbabbbbaa
Output for 4.3.1
bababababbaabbbabaab
Output for 4.3.0
bbbbabbabbaabbabaabb