3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function genRandomString($length=10 ,$characters = '0123456789abcdefghijklmnopqrstuvwxyz',$string = '') { for ($p = 0; $p < $length; $p++) { $string .= $characters[mt_rand(0, strlen($characters)-1)]; } return $string; } echo genRandomString();
based on S6Yep
Output for 7.3.0rc3
5y1076pzq6
Output for 7.3.0rc2
76mjztu434
Output for 7.3.0rc1
kvyal7is7r
Output for 7.3.0beta3
qtzta5g8th
Output for 7.3.0beta2
7bnvh68u3b
Output for 7.3.0beta1
x8yfsagvx5
Output for 7.3.0alpha4
oy3wdlr6da
Output for 7.3.0alpha3
93ezx9n929
Output for 7.3.0alpha2
nxe44rlfbc
Output for 7.3.0alpha1
e1x2e50bv5
Output for 7.2.11
cfofmcskjn
Output for 7.2.10
p2t1q6swmf
Output for 7.2.9
hxuo9szq9j
Output for 7.2.8
vwvaln5nlm
Output for 7.2.7
ggkfu1wicu
Output for 7.2.6
osxgrzbi53
Output for 7.2.5
4cikroh4bj
Output for 7.2.4
6kx2ljothu
Output for 7.2.3
ulasp7wag9
Output for 7.2.2
4pjjygi3kz
Output for 7.2.1
98jlqe11fg
Output for 7.2.0
20l00x4l97
Output for 7.1.23
pfwjzzzpuq
Output for 7.1.22
21gj3qm75h
Output for 7.1.21
ugkksscfyb
Output for 7.1.20
2xj1ib895t
Output for 7.1.19
lmadmm4av5
Output for 7.1.18
jtg0sxuqxi
Output for 7.1.17
shaqsce64o
Output for 7.1.16
58n8ns4tyr
Output for 7.1.15
yuao3fvoht
Output for 7.1.14
3cdglph66v
Output for 7.1.13
r0l6gu81px
Output for 7.1.12
2s3e3e7hid
Output for 7.1.11
sm0jtnrfcu
Output for 7.1.10
xvjmdpu2cr
Output for 7.1.9
iivxvg2bkc
Output for 7.1.8
wgl0eetmo0
Output for 7.1.7
dnsp37ubiq
Output for 7.1.6
aytib79u63
Output for 7.1.5
151kdszx7f
Output for 7.1.4
954y809my5
Output for 7.1.3
zgs2961a33
Output for 7.1.2
k6gw2bti2q
Output for 7.1.1
7cuyph3oo2
Output for 7.1.0
3nnxbzl7iq
Output for 7.0.28
7jvdvulx8z
Output for 5.6.38
67ld2xpue8