3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $length = 10; $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $randomString = ''; for ($i = 0; $i < $length; $i++) { $randomString .= $characters[rand(0, strlen($characters) - 1)]; } print_r($randomString);
Output for 7.2.0
YqHmTtaAZ6
Output for 7.1.7
OJuA8aDP12
Output for 7.1.6
YsNOVKe8f3
Output for 7.1.5
16hZzZeNLi
Output for 7.1.0
jpKrazHdxl
Output for 7.0.20
MkgRGAHUQx
Output for 7.0.14
zXX8FdXxFs
Output for 7.0.6
TJ2oeFS99A
Output for 7.0.5
Ak0Um3S7Rv
Output for 7.0.4
hO0l0GVMb2
Output for 7.0.3
MG6JePW735
Output for 7.0.2
VcK1IDpcrN
Output for 7.0.1
oSuGqXvUBw
Output for 7.0.0
uUO9dK1Sei
Output for 5.6.28
fOqihCiwNR
Output for 5.6.21
5TPjCgdgAW
Output for 5.6.20
9ayM9T29zM
Output for 5.6.19
fycTFBicaF
Output for 5.6.18
uBszickXwr
Output for 5.6.17
1IE1hr4lvn
Output for 5.6.16
8kqHiF8lwC
Output for 5.6.15
kkatVu9cCF
Output for 5.6.14
2vMJjqpL9v
Output for 5.6.13
yd5buboxxL
Output for 5.6.12
Bg9TCQiOr3
Output for 5.6.11
hTERpSEyaU
Output for 5.6.10
opKUPR5EnU
Output for 5.6.9
omUSbPxij5
Output for 5.6.8
EeiNy0ro2r
Output for 5.6.7
NIC3YXbPRu
Output for 5.5.35
NR3S2kwT0H
Output for 5.5.34
7WnTv5g3yx
Output for 5.5.33
hDuWUD0uyA
Output for 5.5.32
TbErZ9HeXJ
Output for 5.5.31
CuHSVtQc3F
Output for 5.5.30
X8DpURmc4L
Output for 5.5.29
s1CmBY9ufm
Output for 5.5.28
4kJXUP1K8H
Output for 5.5.27
nbYjZe3CRE
Output for 5.5.26
8n0I6I6uDO
Output for 5.5.25
dqv3fo7prq
Output for 5.5.24
5c4hwXzIfr
Output for 5.4.45
lO8z69cowL
Output for 5.4.44
3fEepNjuci
Output for 5.4.43
Zsvobdcb72
Output for 5.4.42
3bll1nVIpr
Output for 5.4.41
f3BuMRUypR
Output for 5.4.40
s2wwQMK2tP
Output for 5.4.39
uUupKHhJzl
Output for 5.4.38
nc022hhEIy
Output for 5.4.37
9mwExRjBJV
Output for 5.4.36
Obz6x5avA8
Output for 5.4.35
DolQOsKY8N
Output for 5.4.34
6mgECnEFDN
Output for 5.4.32
vgIPix4luK
Output for 5.4.31
QRjg70i2BJ
Output for 5.4.30
NHWISh8KC4
Output for 5.4.29
XmEaFF64u4
Output for 5.4.28
wXRl9exQYX
Output for 5.4.27
hfKDBg3RqJ
Output for 5.4.26
9CVi3smMj8
Output for 5.4.25
yTdOQ2FPgV
Output for 5.4.24
5AydniXTcd
Output for 5.4.23
yXzvVZcPWQ
Output for 5.4.22
fLxzfGqWYv
Output for 5.4.21
9HIpOlg3GJ
Output for 5.4.20
R2fqRZ5ui9
Output for 5.4.19
4PmqkYMMSP
Output for 5.4.18
ADtOSxRs5H
Output for 5.4.17
jqMk4LhYPx
Output for 5.4.16
Wl3O3C37tN
Output for 5.4.15
5lgYj5DmJX
Output for 5.4.14
LIGntkGV0d
Output for 5.4.13
sbtacxKmcp
Output for 5.4.12
OPR2mqwyUy
Output for 5.4.11
8RxJa4rAuF
Output for 5.4.10
6ZaPUsdnd8
Output for 5.4.9
Ys8TWd5rah
Output for 5.4.8
Rm8PnQXZq7
Output for 5.4.7
cfjjlJWpxC
Output for 5.4.6
hPCwlWVJH5
Output for 5.4.5
E0V0XIxuvQ
Output for 5.4.4
iD8oPU2WtQ
Output for 5.4.3
a0qXdi6aIO
Output for 5.4.2
AlS45FzSLn
Output for 5.4.1
IraWgoowfV
Output for 5.4.0
rN0yeKlwkT
Output for 5.3.29
rd9hzrbWpY
Output for 5.3.28
A2VwLEhBSH
Output for 5.3.27
lGdarjS5CP
Output for 5.3.26
MoW8mT9cqD
Output for 5.3.25
uAwjjwsP01
Output for 5.3.24
mKyg5xYWVA
Output for 5.3.23
IzrLTUcKSR
Output for 5.3.22
pz4IxSLlGQ
Output for 5.3.21
ifhkokI3wJ
Output for 5.3.20
JtKB7mYD11
Output for 5.3.19
Dt2rqgZykP
Output for 5.3.18
Nx9bH1H8AM
Output for 5.3.17
5yEKCNSh5U
Output for 5.3.16
Pn75St99r7
Output for 5.3.15
oOOi5YauZf
Output for 5.3.14
64Qzwyp6hc
Output for 5.3.13
1MzQ0NSJSB
Output for 5.3.12
XYqJFFlfmP
Output for 5.3.11
XD0m0dUzSR
Output for 5.3.10
LFnUdykjvQ
Output for 5.3.9
zBdFdp8BGi
Output for 5.3.8
R8kPh0ThQH
Output for 5.3.7
NuMKrPcAtJ
Output for 5.3.6
W5xfPBnwbO
Output for 5.3.5
2qLNQ0J2xZ
Output for 5.3.4
8tNuwb2i5x
Output for 5.3.3
bwbk9fiNMT
Output for 5.3.2
p7P6kmFtaq
Output for 5.3.1
Xc9aNQachP
Output for 5.3.0
UK1dfLZQ9Y
Output for 5.2.17
IiXVixoHzu
Output for 5.2.16
KPGK0LV7Fp
Output for 5.2.15
UOGtjPZYtU
Output for 5.2.14
g7WWfFOxga
Output for 5.2.13
wjuK6NC5ES
Output for 5.2.12
vi0VY2cKzh
Output for 5.2.11
qOsb4t2MbS
Output for 5.2.10
SbNmo1xUBo
Output for 5.2.9
1WteyqFTF2
Output for 5.2.8
dgHKQh9BfP
Output for 5.2.7
rGTv0Mnq69
Output for 5.2.6
IoG0AMi2YW
Output for 5.2.5
lIqbvoZGXG
Output for 5.2.4
HQyjLHDoQo
Output for 5.2.3
Ndq6duZqUX
Output for 5.2.2
B57CtGjEvI
Output for 5.2.1
giJRJ1Fhz0
Output for 5.2.0
smwnBvWwVA
Output for 5.1.6
rJjFtQAh6L
Output for 5.1.5
95TJMoWdny
Output for 5.1.4
kdZwF7kmNO
Output for 5.1.3
beszI3df0E
Output for 5.1.2
VmO00VEfF1
Output for 5.1.1
om1RrP9Pwl
Output for 5.1.0
ETThGg15XA
Output for 5.0.5
yWHTwAKzi5
Output for 5.0.4
AksILFXqsB
Output for 5.0.3
UVVZRwz86Q
Output for 5.0.2
ursXi2iaFe
Output for 5.0.1
Wk4G3Izy17
Output for 5.0.0
SkKdLUC7mL
Output for 4.4.9
DIJVaxEMck
Output for 4.4.8
PzdcKAZZfp
Output for 4.4.7
wdicDFN9Z1
Output for 4.4.6
j925uIznEh
Output for 4.4.5
TDci0QPRP6
Output for 4.4.4
5xwskBwWY4
Output for 4.4.3
BlcrIYPxhm
Output for 4.4.2
rmxlg5DSeZ
Output for 4.4.1
QgfiTugsro
Output for 4.4.0
quIWcqP3Cn
Output for 4.3.11
gflhy8kG55
Output for 4.3.10
0ZqIxVU8Gx
Output for 4.3.9
uBGBfmdA3z
Output for 4.3.8
LcanaTVR7l
Output for 4.3.7
EkfmprKRx0
Output for 4.3.6
aT6SWGGvYL
Output for 4.3.5
DlBAyhb6TW
Output for 4.3.4
jiwmHXHuMk
Output for 4.3.3
k1PjZLv5MY
Output for 4.3.2
Poj7vpBbQr
Output for 4.3.1
5qPJ5kRV5c
Output for 4.3.0
32NchACuTa