3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function randomFilePrefix($length = 10) { $chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; $randomstr = ""; for($i = 0; $i < $length; $i++) { $randomstr .= $chars[rand(0, count($chars))]; } return $randomstr; } echo randomFilePrefix(10);
Output for 7.1.0
bbaababbbb
Output for 7.0.14
bbaaabbaba
Output for 7.0.11
aabaaabbba
Output for 7.0.10
baaaabaaab
Output for 5.3.14, 7.0.9
bbababbbba
Output for 7.0.8
abaababbba
Output for 7.0.7
aaababbabb
Output for 7.0.0, 7.0.6
bbaabababb
Output for 7.0.5
baababaaba
Output for 7.0.4
abbbbaaabb
Output for 7.0.3
baaabbbbbb
Output for 5.4.40, 7.0.2
aaabababbb
Output for 7.0.1
abaaaababa
Output for hhvm-3.13.2
ababaaaaaa
Output for hhvm-3.12.0
aabbaaaaaa
Output for hhvm-3.10.0
baabbbabab
Output for 5.6.28
abbbbbaaba
Output for 5.6.25
aaabaaaabb
Output for 5.6.24
aabbbababb
Output for 5.6.23
abbabbbaab
Output for 5.6.22
baaaaaaaab
Output for 4.4.3, 5.6.21
babaabbbbb
Output for 5.5.36, 5.6.20
abaabbbaba
Output for 5.6.19
bbbaabbabb
Output for 5.6.18
aabaabaabb
Output for 5.6.17
bbbbabaaab
Output for 5.6.16
baaaaabbaa
Output for 5.5.30, 5.6.15
abaabbabab
Output for 5.6.14
abbababbba
Output for 5.6.13
baaabbabba
Output for 5.6.12
babaaaabbb
Output for 5.6.11
aaababaaba
Output for 5.2.12, 5.6.10
abaaabbbba
Output for 5.6.9
baababbabb
Output for 5.6.8
bbbbaaaaaa
Output for 5.6.7
aaabbbabbb
Output for 5.6.6
abbbbbbaba
Output for 5.6.5
bbabababab
Output for 5.6.4
aabaaabbbb
Output for 5.6.3
aababbbaab
Output for 5.6.2
babaaaaaba
Output for 5.6.1
baabababaa
Output for 5.6.0
aaaabbbbbb
Output for 5.5.38
bababaaaba
Output for 5.5.37
bbabaabaab
Output for 5.5.35
baabbaabba
Output for 5.2.14, 5.5.34
babaabbabb
Output for 5.5.33
babbababbb
Output for 5.5.32
bbaabbbbba
Output for 5.5.31
baababbaab
Output for 5.5.29
abbaabbbab
Output for 5.5.28
aaaaababbb
Output for 5.5.27
abaaabaabb
Output for 5.5.26
bbabbaabaa
Output for 5.5.25
bbababaaaa
Output for 5.5.24
abaabababa
Output for 5.5.23
baaaabbbba
Output for 5.5.22
ababbaaaba
Output for 5.5.21
bbbabaabba
Output for 5.5.20
ababbbabaa
Output for 5.5.19
ababbabaab
Output for 5.5.18
aaaabbbaaa
Output for 5.5.16
aabbababbb
Output for 5.0.4, 5.5.15
baaabaabba
Output for 5.4.6, 5.5.14
baabbbbaab
Output for 5.5.13
babababbba
Output for 5.5.12
baaaababab
Output for 5.5.11
abbabbbbab
Output for 5.5.10
abbaabbaba
Output for 5.5.9
baaabbabab
Output for 5.5.8
bbabaababa
Output for 5.5.7
abbbabbabb
Output for 5.5.6
bbbaabaaab
Output for 5.5.5
bababbbbbb
Output for 5.5.4
baaabbbbba
Output for 5.5.3
baaaabbbbb
Output for 5.3.20, 5.5.2
babbaabbbb
Output for 5.5.1
ababbabaaa
Output for 5.3.3, 5.5.0
bbbbbababa
Output for 5.4.45
aaaabbbbab
Output for 5.4.44
abbbaabbbb
Output for 5.4.43
babbbaaaba
Output for 5.4.42
baabaabbaa
Output for 5.4.41
aabaababab
Output for 5.4.39
aaaabbaaaa
Output for 5.0.3, 5.4.38
baaaabbbab
Output for 5.4.37
aabaabbbbb
Output for 5.4.36
babbabbbab
Output for 5.4.35
ababbaabbb
Output for 5.4.34
aabababaab
Output for 5.4.32
abbaaaabaa
Output for 5.4.31
bababbabbb
Output for 4.4.6, 5.4.30
abbababbaa
Output for 5.4.29
bbbbbbaaaa
Output for 5.4.28
bbabbabbbb
Output for 5.4.27
aabababaaa
Output for 5.4.26
aaaaababab
Output for 5.4.25
bbbaabbaaa
Output for 5.4.24
bbbbabaaaa
Output for 4.3.5, 5.3.23, 5.4.23
bbbbababba
Output for 5.4.22
aabababbba
Output for 5.4.21
abbabbbaaa
Output for 5.4.20
babaabbbab
Output for 4.3.4, 5.4.19
baababbaba
Output for 5.4.10, 5.4.18
abbabbaabb
Output for 5.4.17
bbaaababab
Output for 5.4.16
babbabbabb
Output for 5.4.15
babababbab
Output for 5.4.14
ababbbabba
Output for 5.0.0, 5.4.13
bbbaabbaab
Output for 5.4.12
bbaaaaabba
Output for 5.4.11
aabaaabaaa
Output for 5.4.9
bbaaaabbbb
Output for 5.4.8
babbaabbab
Output for 5.3.7, 5.4.7
abbbaababa
Output for 5.4.5
baaabaaaab
Output for 5.4.4
baaaaabbab
Output for 5.4.3
bbabaabbbb
Output for 5.4.2
bbabbbbbbb
Output for 5.4.1
aaaaaababb
Output for 5.4.0
bbaabbaaba
Output for 5.3.29
ababababab
Output for 5.3.28
abbaababbb
Output for 4.4.0, 5.3.27
aababbbabb
Output for 5.3.26
bbaaaabbab
Output for 5.3.25
baaababbaa
Output for 5.3.24
ababaababb
Output for 5.3.22
aaababaaab
Output for 5.3.21
aaabbbbbbb
Output for 5.3.19
abbbbaabbb
Output for 5.3.18
baaaaababb
Output for 5.3.17
bbaababaab
Output for 5.3.16
baabbabbba
Output for 5.3.15
babbbaaaab
Output for 5.3.13
aaaabbbaab
Output for 5.3.12
abbbaabaaa
Output for 5.3.11
baaabaaabb
Output for 5.3.10
bababbbabb
Output for 5.3.9
abbbabbaab
Output for 5.3.8
bbbbabbbab
Output for 5.3.6
bbabababaa
Output for 5.3.5
aababaaabb
Output for 5.3.4
abaabaabba
Output for 5.3.2
babbabaaba
Output for 5.3.1
bbabbbbbab
Output for 5.3.0
aaabbaaaab
Output for 5.2.17
babbaabbba
Output for 5.2.16
abaabbbabb
Output for 5.2.15
babaababba
Output for 5.2.13
bbbbabaaba
Output for 5.2.11
aaabbbbabb
Output for 5.2.10
baabbbbaaa
Output for 5.2.9
aaabbabbaa
Output for 5.2.8
aaabbbbaab
Output for 5.2.7
baaabbbaaa
Output for 5.2.6
baabbababa
Output for 5.2.5
baaabbbaba
Output for 5.2.4
bbaababbba
Output for 5.2.3
bbababbabb
Output for 5.2.2
abbbbbabaa
Output for 5.2.1
bbbbaababa
Output for 5.2.0
ababaababa
Output for 5.1.6
bbbababaab
Output for 5.1.5
aaaaaabbaa
Output for 5.1.4
babbbbaabb
Output for 5.1.3
baabaaaaaa
Output for 5.1.2
aabbbbaabb
Output for 5.1.1
bbabbbabba
Output for 5.1.0
babababaab
Output for 5.0.5
bbaabbbaab
Output for 5.0.2
aaabbbabaa
Output for 5.0.1
aaaabaabab
Output for 4.4.9
ababbbabbb
Output for 4.4.8
aaabaaabaa
Output for 4.4.7
abaabaaaba
Output for 4.4.5
abbaabbabb
Output for 4.4.4
bbabbbabbb
Output for 4.4.2
baabbbbaba
Output for 4.4.1
abbbaabbab
Output for 4.3.11
bababbabba
Output for 4.3.10
babbbaaaaa
Output for 4.3.9
abbabbbbbb
Output for 4.3.8
aaaaabbbba
Output for 4.3.7
babaaaaabb
Output for 4.3.6
abaaababbb
Output for 4.3.3
babbbbbbba
Output for 4.3.2
abbabbaaba
Output for 4.3.1
abababbaaa
Output for 4.3.0
baabbbbbab