3v4l.org

run code in 150+ 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.1.0
jpKrazHdxl
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 hhvm-3.12.0
jvZcN3Vtkr
Output for hhvm-3.10.0
RZYCYtV9dR
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
V4xngJbesn
Output for 5.4.26
uIXWEpraAj
Output for 5.4.25
vFUFE7NdHF
Output for 5.4.24
d9LTZPkFZ2
Output for 5.4.23
8gBQfq69Nt
Output for 5.4.22
xevSzs9BHG
Output for 5.4.21
eLwJG5nQZ6
Output for 5.4.20
6P3XFm3hWM
Output for 5.4.19
N456MIb9w4
Output for 5.4.18
ytehrKggcc
Output for 5.4.17
K3gzZxBsec
Output for 5.4.16
KJupzed1QF
Output for 5.4.15
pvhsLqfiTz
Output for 5.4.14
zNuOKJAlLC
Output for 5.4.13
X71sjFooNj
Output for 5.4.12
IBczYQujOy
Output for 5.4.11
V7qEbGOBAV
Output for 5.4.10
KZmQnOEknL
Output for 5.4.9
nltlJmSgr9
Output for 5.4.8
dCVLUqcIOo
Output for 5.4.7
HbppLv4YZz
Output for 5.4.6
GVNJ066fSE
Output for 5.4.5
Vrf9XKfmkU
Output for 5.4.4
u1wO7Ct5Hp
Output for 5.4.3
vDYkBS5xWk
Output for 5.4.2
G6WxKAlFdG
Output for 5.4.1
VWAbtvFIr3
Output for 5.4.0
1ycfmaiPdU
Output for 5.3.29
rd9hzrbWpY
Output for 5.3.28
9nGWjpsb76
Output for 5.3.27
MOUHhyqt9P
Output for 5.3.26
K234X8VW3N
Output for 5.3.25
cMRvv6b8HQ
Output for 5.3.24
ub144dhOua
Output for 5.3.23
ofgfnERb6E
Output for 5.3.22
UJIg4WcsFq
Output for 5.3.21
O1kRF4uQ0J
Output for 5.3.20
vV8bS1RSCZ
Output for 5.3.19
LPqhM5m2vb
Output for 5.3.18
TjslxKNgWn
Output for 5.3.17
VbNl13INrQ
Output for 5.3.16
N1w3VJBvff
Output for 5.3.15
bS1rUFu587
Output for 5.3.14
iYDfqxKCGH
Output for 5.3.13
GWXGK78flp
Output for 5.3.12
BotlyzO1CJ
Output for 5.3.11
asiBfRDi0b
Output for 5.3.10
I2FcawwSdM
Output for 5.3.9
jgZdH5tOYi
Output for 5.3.8
a2cXIR6flu
Output for 5.3.7
54APZGRFMY
Output for 5.3.6
S9FsSEhoCO
Output for 5.3.5
OvtATDVcbt
Output for 5.3.4
2Hk0oE00tb
Output for 5.3.3
qM29x4Kdkm
Output for 5.3.2
e2URVF4E0D
Output for 5.3.1
xEA8uV5uyj
Output for 5.3.0
8PvlvBmAq6
Output for 5.2.17
JuDNDJvngZ
Output for 5.2.16
Rk8FK0BI33
Output for 5.2.15
GWJtnBjvdU
Output for 5.2.14
ktVX2JF5Cd
Output for 5.2.13
AA7evFz39Q
Output for 5.2.12
zur63pbJeR
Output for 5.2.11
r2pRopk809
Output for 5.2.10
ZPHEf7aKCs
Output for 5.2.9
qVG8d3kKEg
Output for 5.2.8
UWiDNc0BBF
Output for 5.2.7
r9FbCmwp0E
Output for 5.2.6
HqyyM6TcPg
Output for 5.2.5
mngLP1EyuG
Output for 5.2.4
B1QSUr27uC
Output for 5.2.3
m2Rl4v6WsD
Output for 5.2.2
wm1ulURWEf
Output for 5.2.1
1AtqHRDgqL
Output for 5.2.0
F3y5OErjBq
Output for 5.1.6
4VyvgZyfli
Output for 5.1.5
R8QxNn31DX
Output for 5.1.4
RHPw4LVvRh
Output for 5.1.3
BMo4qOHZwY
Output for 5.1.2
3EN4Rsb4Y8
Output for 5.1.1
UZRBa6knXL
Output for 5.1.0
XjsAACaeJQ
Output for 5.0.5
4dV1L7xw2z
Output for 5.0.4
1zrxSZ6PAp
Output for 5.0.3
WKW9NP3VYk
Output for 5.0.2
UG8V8kVJU2
Output for 5.0.1
eeOu990ZU1
Output for 5.0.0
DPQ2yENxFt
Output for 4.4.9
z42u3IggJX
Output for 4.4.8
ETjZ5S2Txs
Output for 4.4.7
8Z3NB2b2bs
Output for 4.4.6
L00LoN8qUt
Output for 4.4.5
tMdUC2bM85
Output for 4.4.4
GMBUwISJyb
Output for 4.4.3
ivSxb2pwIG
Output for 4.4.2
xM0bIMXkh8
Output for 4.4.1
xLs58d1b2h
Output for 4.4.0
D0JXJb4Bjr
Output for 4.3.11
i0S5j9Ah71
Output for 4.3.10
uEpthf6R5z
Output for 4.3.9
OAsbZv8Ctr
Output for 4.3.8
gYsOgMxFtP
Output for 4.3.7
jhuZhG1ced
Output for 4.3.6
5b2lKh2pTN
Output for 4.3.5
0K521ejSHS
Output for 4.3.4
EcLaSz9USt
Output for 4.3.3
rI8CC002EA
Output for 4.3.2
IkDa7Fx9UG
Output for 4.3.1
rIGzlaB7pO
Output for 4.3.0
32NchACuTa