3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function randomString($length, $chars="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789") { $length = min($length, 255); $string = ''; while (strlen($string) < $length) { $string .= $chars[mt_rand(0, strlen($chars)-1)]; } return $string; } echo randomString(10);
Output for 7.1.0
sO5cJNbrku
Output for 7.0.14
9ZFw11Np76
Output for 7.0.6
UJNq1NQiI9
Output for 7.0.5
42CFUxK6Sd
Output for 7.0.4
CLml0265Zn
Output for 7.0.3
bMag8mtJSH
Output for 7.0.2
2fj1WhfEyQ
Output for 7.0.1
H4Hpph0pEc
Output for 7.0.0
tI2NgZeQZT
Output for 5.6.28
Tl4Y0o8OUr
Output for 5.6.21
eoXVeRnDAE
Output for 5.6.20
45CSfNfhLf
Output for 5.6.19
NIjQNUgsJQ
Output for 5.6.18
Cdml4W0Zdh
Output for 5.6.17
pPz3j8XY07
Output for 5.6.16
hduOH94RBV
Output for 5.6.15
RVmJjz6NcB
Output for 5.6.14
Nb3BeohzVH
Output for 5.6.13
2ksXpiLVzV
Output for 5.6.12
9bSGm9yXFy
Output for 5.6.11
g3fK03fk0Q
Output for 5.6.10
g9sLd8Yy2W
Output for 5.6.9
qXn4snTYoz
Output for 5.6.8
VwvgJbVmTV
Output for 5.5.35
2nbMVYkeSt
Output for 5.5.34
ChcrkP7LGg
Output for 5.5.33
IstQzFworh
Output for 5.5.32
IOKrj7jpmy
Output for 5.5.31
U9IbkGbWLI
Output for 5.5.30
qRbKYkiIYe
Output for 5.5.29
zDrNXNXlbR
Output for 5.5.28
odT3KSu23E
Output for 5.5.27
en3ZBh9zMa
Output for 5.5.26
fR5frNnRw7
Output for 5.5.25
QO2t4i3xBM
Output for 5.5.24
dh8nI2msbT
Output for 5.4.45
U5xNIT7qaS
Output for 5.4.44
nUvaDyPI82
Output for 5.4.43
s8eC63J4pL
Output for 5.4.42
zh7z0LArOc
Output for 5.4.41
fEANPTSTz2
Output for 5.4.40
93EGw7ZwKw
Output for 5.4.39
kyPXYjvywB
Output for 5.4.38
xmIyPBD6k0
Output for 5.4.37
A0y4CE8Ioq
Output for 5.4.36
88ZIt95Ydt
Output for 5.4.35
WET4DSQ5xs
Output for 5.4.34
8c1cwEGmR8
Output for 5.4.32
vIw5ZnzHM3
Output for 5.4.31
BiyVSuDs7l
Output for 5.4.30
N2Tvu6fZ4y
Output for 5.4.29
8Z30gjqGwD
Output for 5.4.28
fXkKoFY2El
Output for 5.4.27
9SJTHlt3rg
Output for 5.4.26
EsHdmNmC4Q
Output for 5.4.25
oqmHZrsIAN
Output for 5.4.24
vzOLuBrzO7
Output for 5.4.23
Fssgr2oVb0
Output for 5.4.22
XtFcYdU7cw
Output for 5.4.21
98u0bWEF83
Output for 5.4.20
YE1Vfhif8g
Output for 5.4.19
xfABuqrTq2
Output for 5.4.18
XfyQiqWVCQ
Output for 5.4.17
3wc37By8zu
Output for 5.4.16
IHhEaNgDVR
Output for 5.4.15
itY3RD18j7
Output for 5.4.14
btJbC38sNB
Output for 5.4.13
xc7Lac5MCO
Output for 5.4.12
ri1JOUlJ2h
Output for 5.4.11
HPzblNAbS4
Output for 5.4.10
fxOBTUKx3S
Output for 5.4.9
A4FZ6zhDtW
Output for 5.4.8
PhWZGnfAZH
Output for 5.4.7
EZdgYBTH5T
Output for 5.4.6
Dh32sqnqvp
Output for 5.4.5
pRMD7Azzpl
Output for 5.4.4
ifrSFxjaqy
Output for 5.4.3
7oQYjZJRfp
Output for 5.4.2
yDjF7OrXmT
Output for 5.4.1
9fZKGfjeiW
Output for 5.4.0
y7gqYhH96r
Output for 5.3.29
CQuZAx2H3K
Output for 5.3.28
vjrWw6761J
Output for 5.3.27
y9ZrHTuD5B
Output for 5.3.26
wM5ni54I4A
Output for 5.3.25
f7Pg8Q8BwW
Output for 5.3.24
d9L7EIGq1n
Output for 5.3.23
Vhti8XO9yt
Output for 5.3.22
sCLVpPUdZC
Output for 5.3.21
RzolgztOiI
Output for 5.3.20
FO7TFWrYeX
Output for 5.3.19
um7I1uy4Ng
Output for 5.3.18
xK0Gyf7al4
Output for 5.3.17
qAVLaXS7zk
Output for 5.3.16
r0WAXbKV4M
Output for 5.3.15
DWP74SBpdz
Output for 5.3.14
WtnN4p3BRH
Output for 5.3.13
a8s2i4pWRb
Output for 5.3.12
wLnDUcQV0x
Output for 5.3.11
wVxXaZm1cJ
Output for 5.3.10
2igjV2EoYh
Output for 5.3.9
yNPGufMqMi
Output for 5.3.8
kq3bHyOXMm
Output for 5.3.7
7QzAKu0wYC
Output for 5.3.6
KHOC9MfaIR
Output for 5.3.5
IjRVqD5YrN
Output for 5.3.4
GMf8eLKpPu
Output for 5.3.3
DKI33VcB3N
Output for 5.3.2
SMdIwQX1l9
Output for 5.3.1
nornE06Kxh
Output for 5.3.0
FGrp4gnMot
Output for 5.2.17
upedxLgpFZ
Output for 5.2.16
g3oF07JODU
Output for 5.2.15
RkioXZFaEU
Output for 5.2.14
USeD7fDxS0
Output for 5.2.13
OyvSTUXndX
Output for 5.2.12
UAiwDw6Nhs
Output for 5.2.11
uQh8AkUn2l
Output for 5.2.10
e2iBY4i6aA
Output for 5.2.9
TvZu38Z4cG
Output for 5.2.8
dDP91Rw3Z3
Output for 5.2.7
Izn6r4YMds
Output for 5.2.6
m2llgQjETx
Output for 5.2.5
Ue15OCVFUx
Output for 5.2.4
Q9tHzejAhF
Output for 5.2.3
IMAJTnkUOb
Output for 5.2.2
ZGGdxDjKyO
Output for 5.2.1
UVJwYf1oT0
Output for 5.2.0
3nAliSwXy6
Output for 5.1.6
E5LzVyfh3z
Output for 5.1.5
m54mrXTUWk
Output for 5.1.4
I2XHwCqMen
Output for 5.1.3
l6PaQDzBjo
Output for 5.1.2
UHh4dWKxvP
Output for 5.1.1
WC0h5qlPM1
Output for 5.1.0
I63kjJL2Ha
Output for 5.0.5
blgxKsNNaL
Output for 5.0.4
HC8RPx3PjL
Output for 5.0.3
rukHhvxwfh
Output for 5.0.2
mgZ8U791jw
Output for 5.0.1
ikKfX2rJhj
Output for 5.0.0
rUOeZ8ow6D
Output for 4.4.9
a70KMUBfIz
Output for 4.4.8
ZzbjjMtvB8
Output for 4.4.7
JBEBKhADGl
Output for 4.4.6
t0XeNbnfOW
Output for 4.4.5
WXJLHlMCuj
Output for 4.4.4
Vp1NfOXXSC
Output for 4.4.3
uVBTQoTQLW
Output for 4.4.2
V84KpOoD0g
Output for 4.4.1
GdDOIK2DWt
Output for 4.4.0
FDUf2j4J8X
Output for 4.3.11
iTFAcTJChX
Output for 4.3.10
5jExcgYW8P
Output for 4.3.9
xY6yW3cw01
Output for 4.3.8
KYGSSGN2Mq
Output for 4.3.7
qX1gc8GLvR
Output for 4.3.6
TNG69uujpO
Output for 4.3.5
0Wxkz7wiad
Output for 4.3.4
QjdD9smghg
Output for 4.3.3
hQFgefCq4k
Output for 4.3.2
H36fPLvyxQ
Output for 4.3.1
aBo9Ol0Xjs
Output for 4.3.0
mPPoof6rzW