3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 'abcdefghijklmnopqrstuvwxyz0123456789'; for ($x=0,$r=null;$x<8;$x++) { $r .= substr($a, 0, mt_rand(0, strlen($a - 1))); } echo $r;
Output for 7.1.0
Warning: A non-numeric value encountered in /in/OKlmK on line 6 Warning: A non-numeric value encountered in /in/OKlmK on line 6 Warning: A non-numeric value encountered in /in/OKlmK on line 6 Warning: A non-numeric value encountered in /in/OKlmK on line 6 Warning: A non-numeric value encountered in /in/OKlmK on line 6 Warning: A non-numeric value encountered in /in/OKlmK on line 6 Warning: A non-numeric value encountered in /in/OKlmK on line 6 Warning: A non-numeric value encountered in /in/OKlmK on line 6 ababaaaba
Output for 5.3.25, 7.0.14
aababa
Output for 5.6.10, 7.0.6
abaaa
Output for 7.0.5
aaab
Output for 5.0.1, 7.0.4
abababaab
Output for 5.3.27, 7.0.3
abaaaa
Output for 5.4.8, 7.0.2
aabaaa
Output for 4.4.9, 5.3.14, 5.4.18, 7.0.1
aaaabab
Output for 7.0.0
ababaaaa
Output for 5.6.28
aababaababaa
Output for 4.3.6, 5.4.0, 5.6.21
aaabab
Output for 4.3.8, 5.2.14, 5.6.18, 5.6.20
abaaaba
Output for 5.6.19
abaabababa
Output for 5.3.24, 5.6.17
aababaab
Output for 5.6.16
abababababa
Output for 4.3.10, 5.1.1, 5.6.15
abaabaaa
Output for 5.6.14
aaaababa
Output for 5.6.13
aaaab
Output for 5.3.2, 5.4.30, 5.6.12
aabaaba
Output for 5.3.0, 5.4.5, 5.6.11
abaaaab
Output for 5.6.9
aaaaaba
Output for 5.4.10, 5.6.8
ababababaab
Output for 5.5.35
aabaabab
Output for 5.2.8, 5.4.42, 5.5.34
aaba
Output for 5.5.33
aabaabababa
Output for 5.3.13, 5.5.32
abaa
Output for 5.5.31
abaaaabaab
Output for 5.5.30
ababababababa
Output for 5.5.29
aaabaabab
Output for 5.5.28
aabaabaa
Output for 5.1.4, 5.5.27
ababaab
Output for 5.5.26
aaababa
Output for 5.5.25
abaababaab
Output for 5.5.24
aaabaa
Output for 5.4.27, 5.4.45
abababaaaab
Output for 4.3.3, 5.4.44
ababab
Output for 5.4.43
aababaaab
Output for 5.4.41
aa
Output for 5.3.3, 5.4.40
abaaab
Output for 5.4.39
aaabababaa
Output for 5.4.38
abaaaaba
Output for 5.4.37
abaabaa
Output for 5.4.36
abaaabaab
Output for 4.3.7, 5.3.16, 5.4.35
abaababa
Output for 4.3.1, 4.3.11, 4.4.2, 5.1.6, 5.3.8, 5.4.34
aaa
Output for 5.4.32
abababababab
Output for 5.1.0, 5.4.31
abaaaabab
Output for 5.0.5, 5.4.29
aaabaabaab
Output for 5.2.0, 5.2.10, 5.4.28
ababaababa
Output for 5.4.16, 5.4.26
ababaaab
Output for 5.4.25
abaabab
Output for 5.4.24
ababaabaaba
Output for 4.4.3, 5.4.23
ababababab
Output for 4.3.0, 4.4.8, 5.0.0, 5.2.17, 5.4.6, 5.4.22
aaaa
Output for 5.4.21
aabaaaba
Output for 5.3.10, 5.4.20
aababab
Output for 5.4.19
abaaabab
Output for 5.4.3, 5.4.17
ababaa
Output for 5.3.12, 5.4.15
abaaaaa
Output for 5.4.7, 5.4.14
aabaab
Output for 5.4.13
abaaababab
Output for 5.4.12
aaaaababab
Output for 5.3.26, 5.4.11
ababaabaa
Output for 5.4.9
aaaababaa
Output for 5.4.4
ababaababab
Output for 5.2.7, 5.4.2
abaabaab
Output for 5.4.1
aaaba
Output for 5.3.4, 5.3.19, 5.3.21, 5.3.29
abaaba
Output for 5.3.28
aabaaaaba
Output for 5.3.23
aababaa
Output for 5.3.22
ababaababaab
Output for 5.3.20
aabababaaa
Output for 5.2.12, 5.3.18
aaababaab
Output for 5.3.17
aaaaab
Output for 5.3.15
abababa
Output for 5.3.11
abaababab
Output for 4.4.5 - 4.4.6, 5.3.5, 5.3.9
aabababa
Output for 5.1.5, 5.2.2, 5.3.7
ababaaa
Output for 5.3.6
aaaababaaba
Output for 4.3.9, 5.3.1
abababab
Output for 5.2.16
aabaabaab
Output for 5.2.15
abaaaaaba
Output for 5.2.13
aab
Output for 5.2.11
aaaaaaba
Output for 5.2.9
aaaaaaab
Output for 5.2.6
abaaabaa
Output for 5.2.5
abaababaa
Output for 5.2.4
ababaaaba
Output for 5.2.3
abaabaabaaab
Output for 5.2.1
abababaabaabab
Output for 5.1.3
abaababaabab
Output for 5.1.2
ababa
Output for 5.0.4
aaabaababa
Output for 5.0.3
ababaabababaa
Output for 5.0.2
aabab
Output for 4.4.7
aaababab
Output for 4.4.4
aabaababab
Output for 4.4.1
ababababa
Output for 4.4.0
ababaabaaab
Output for 4.3.5
aababababaab
Output for 4.3.4
aaabaaba
Output for 4.3.2
aaabababa