3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function randomString($length=10,$symbols=false) { $grabbag = "abcdefghijklmnopqrstuvwxyz0123456789"; if ($symbols) { $grabbag .= '!@#$%^&*()_+{}-=[]|\\:";\'<,>.?/~`'; } $string = ''; $len = strlen($grabbag)-1; while ($length--) { $char = $grabbag[rand(0,$len)]; if (rand(0,1)) { $char = strtoupper($char); } $string .= $char; } return $string; } echo randomString(20);
Output for 7.1.0
amlAxxgJB29FqwUK5Jg1
Output for 7.0.14
97VkRRinDhm1XWecGLW8
Output for 7.0.12
6EIo8imN015cT6x0TBv4
Output for 7.0.6
eLdYllvrmD49biP06KSU
Output for 7.0.5
W605P5L95nQ5V7x0UdJH
Output for 7.0.4
tX946G1fq5i6S3zx2J4K
Output for 7.0.3
9kfw6g5DMR4523yL33cI
Output for 7.0.2
lkpbY5i1s0VLXQUODF93
Output for 7.0.1
2r425au0phXwd9146X7I
Output for 7.0.0
W9Kcoh8taJG4Q9u07npX
Output for 5.6.28
y58nZ6OWaJ6Q15QfxEk5
Output for 5.6.21
2TM6xWNU7165uzcJI0Qr
Output for 5.6.20
aqoX72UHsl5OoAGi9ucE
Output for 5.6.19
l9ifw40QlQFotluB1WGF
Output for 5.6.18
04v9K6yo3SNWYX7XU5TG
Output for 5.6.17
1psMf22jICYusL1N02ad
Output for 5.6.16
Azkr9Ggrir16p5U1lX21
Output for 5.6.15
n4wmSMWoJ48SPpMZDQ4f
Output for 5.6.14
N3oaheSW3ewd7gA9UFdp
Output for 5.6.13
h0L4CuU90jiyXdR24vq9
Output for 5.6.12
FSDVoLSBkEBc84xTem61
Output for 5.6.11
9u5CxsUjzzF37BEyyHbB
Output for 5.6.10
zQ8EU8Hi1FfB3uY3hji7
Output for 5.6.9
5RaiWNAgfdVXi9g4jbzq
Output for 5.6.8
2X6sTAd8Q8jIVidWqwxx
Output for 5.5.35
u97MMujF8hwDmC44Odzi
Output for 5.5.34
33NF0kr68H2x6Th8BoPa
Output for 5.5.33
5HL2TO9VPtMePAN3s96y
Output for 5.5.32
X7cSKDxfXghahvAOgmW9
Output for 5.5.31
agIxn5TkB7Hu9p4NZMRK
Output for 5.5.30
DqYoa5PS1Rf5nSsGC4t4
Output for 5.5.29
fZYrNt8VB7Zhldcrsd1v
Output for 5.5.28
3EGbKk3jiaXmszrcb4Eu
Output for 5.5.27
9LJtuwYeg0FoDu9SQY37
Output for 5.5.26
FrJvUwr2Xr24B40HYGSm
Output for 5.5.25
9dUdI4zCOLXwzDcpAEc8
Output for 5.5.24
RKzH42NQVzX9ue7a3NSd
Output for 5.4.45
v3U2UJh6IhPI3dzeX776
Output for 5.4.44
envoyw8f2x32zqqVX58Q
Output for 5.4.43
8ZZjeZA2bhlQK7WX5Im7
Output for 5.4.42
13G582n0556n4e7W5wF0
Output for 5.4.41
17ZE77H12G0aK7qgv7w7
Output for 5.4.40
XJOj778PGfRFuFf03m4I
Output for 5.4.39
wz9E2qEo125psdlRikcC
Output for 5.4.38
G7Gqgz4Xy86EgOClpMHy
Output for 5.4.37
8p0BYXTpf40t0TVO19iI
Output for 5.4.36
86VO8C1DD6Rd6SjgmQVT
Output for 5.4.35
z7O9vJ81hvaKJIBNj7EU
Output for 5.4.34
xQ0hfw6KQJbFZVv6vicu
Output for 5.4.32
IEdVuDgbkA6NMvia1BV0
Output for 5.4.31
3H8736bhWVNAK4syXDv6
Output for 5.4.30
lpSRIUORXy1WD4n83f9j
Output for 5.4.29
P4b1lv4YJvbudniTdfYc
Output for 5.4.28
o0v5BWXeV8g7dGx3O58n
Output for 5.4.27
2K0DU9Js5SmPw3jbb79O
Output for 5.4.26
D0N5abferIkWgTisai4P
Output for 5.4.25
pGc8b4d19DkVdVUQJ39w
Output for 5.4.24
UiTHf5vjED6f93oNAGtM
Output for 5.4.23
VFNE6bldDC64LZorISTp
Output for 5.4.22
ba350l74nfiO5sD5DO0n
Output for 5.4.21
nXx0D4Acx618hchQ2pgw
Output for 5.4.20
WAS6EAbHC9tR5I8F0dbf
Output for 5.4.19
FhuJe430qol7R1v606oE
Output for 5.4.18
RIXLLT9aaf74EsEQJKZs
Output for 5.4.17
ftNJJV1kc6555O5jPKQY
Output for 5.4.16
fR5xxDFUBN0s32a6x2f2
Output for 5.4.15
lgG1Egk4ZdoX3W8fdo9e
Output for 5.4.14
mRvHhp506PzzKpHU5kHc
Output for 5.4.13
AYNY2mNJ34UZSHwE1gN2
Output for 5.4.12
721h0y67oK16so0I48j9
Output for 5.4.11
asS1j9uPuPQi5u3HL6LY
Output for 5.4.10
29y5lXb7Cz52VrkaWePI
Output for 5.4.9
T44r9aK6WAN6gZjYF2wC
Output for 5.4.8
W64JvFLAK3DGUCK327bP
Output for 5.4.7
5i0i2y2YLCLASR2DcDy8
Output for 5.4.6
Tl7t85o135B6UO4qMxfl
Output for 5.4.5
HYhef458M2F13CoT3kxF
Output for 5.4.4
s1WgB88hPI2DR35fPetG
Output for 5.4.3
NVj5CWv07I6743VZf6WJ
Output for 5.4.2
D7ty8WB0cu73Rc9jm2tB
Output for 5.4.1
OVa7zmF2v3VtQ4bjVD4Q
Output for 5.4.0
pkhm3h9BrCiw0IA6d2r1
Output for 5.3.29
6gWpP3VAOu2gJ4wXUatL
Output for 5.3.28
kCgMgU6l8SMPreR50XN2
Output for 5.3.27
BRYILKh6dcI3XIhjAAvS
Output for 5.3.26
380Uid5LoJTG2s5HjjRV
Output for 5.3.25
lsqTvoeLp9qd34s6ugRt
Output for 5.3.24
AWz9WO5y0gP6gjm0kmss
Output for 5.3.23
goJ4QoZ7aXZScpWVB31x
Output for 5.3.22
VYwrbSzN2dMEm9GWosNq
Output for 5.3.21
h8DWqK80Gz1FlHiwG0pC
Output for 5.3.20
SrRF818u9qC098OEZ8uZ
Output for 5.3.19
8NovWVieWlc96CY1tNVp
Output for 5.3.18
Mm1UOx2ZEj6ck1lW870p
Output for 5.3.17
20iOI2aox0sXot98K13e
Output for 5.3.16
QbXpCFe7LjM2OGo2AEM9
Output for 5.3.15
VHsgAabu3ff3Z7D7oNKi
Output for 5.3.14
v2eha7MAppIA39oXna6S
Output for 5.3.13
DLBEmu4Y70aUQv6oR3OH
Output for 5.3.12
B91k5Zr2Di9b9k30RjOj
Output for 5.3.11
AO69c0gO330aQ5VCwUE4
Output for 5.3.10
G4MxrmU7kk2I0CnAG6T5
Output for 5.3.9
nA1X3MN955Rbu3tXRq8F
Output for 5.3.8
Lcu88VZ8lh6z9kX5ML82
Output for 5.3.7
6K3534CgUfOzunn28BO8
Output for 5.3.6
kz1oDt6YTIQjySD30SO3
Output for 5.3.5
t25ZIW932e5xbiJPaRyP
Output for 5.3.4
3U0uFi2A27rJ8CtxkaHk
Output for 5.3.3
PDKnyNqOLKAFTKsU9zom
Output for 5.3.2
u1E16CObFTAtfHyvsRd1
Output for 5.3.1
66dZPrT3iv36kFJjxAQP
Output for 5.3.0
TnHO8V8dQNZII7k7zC7T
Output for 5.2.17
EE3LWESUR05fhzV9puOg
Output for 5.2.16
9a0b8Yu989sFLFtS5XK8
Output for 5.2.15
a37sEm62jMby31nfUF06
Output for 5.2.14
q9cxfvE1AH45VY8dhhU2
Output for 5.2.13
pV6452R8V1O3MdKReinm
Output for 5.2.12
q2x07JHwfRZIskqMvjMk
Output for 5.2.11
r9Mj9B78UgKvVd6b1s8F
Output for 5.2.10
Nwenp6F96W6w8R9h5W9p
Output for 5.2.9
MfBsvh16uC3iqC76xOU5
Output for 5.2.8
CbZT9wnH5Fj7uKfkcR8R
Output for 5.2.7
Bpu8x67ZVTMFXM02iGpr
Output for 5.2.6
4nxTjAL71cu8fZ9TBLNR
Output for 5.2.5
6hJJ72Zx0WUHzs8D8bjd
Output for 5.2.4
JNs5UgQF97I8DfKBbSyi
Output for 5.2.3
cGXFWz86D78QeS21Tp4g
Output for 5.2.2
xe7c4P6J6sqpg8uuNkoy
Output for 5.2.1
FOnFhuY3uL3uJM1LMXFs
Output for 5.2.0
MYFW66dcHyD2Rh9i0DXX
Output for 5.1.6
lHISpJ0Sv0sHfpR3d1ye
Output for 5.1.5
bjI5j8r39Q9g0rn8v52u
Output for 5.1.4
a9V0l8WeQVN1qBJme27k
Output for 5.1.3
6VgH53SbL098n338Eju3
Output for 5.1.2
2nzsP7UFUOVjr239k5oQ
Output for 5.1.1
dBXsz9XbUM9PLB7pj0p9
Output for 5.1.0
qub0IwM50ZoIt5azxYsT
Output for 5.0.5
73TIlsdHRAKDWiJkmGdt
Output for 5.0.4
7q8S6QeGIW3rhz8IU89D
Output for 5.0.3
YW03uz77PJ0YMJNlL5JL
Output for 5.0.2
vMiiSn30t0c1nA9QJTG4
Output for 5.0.1
M3cq6qJmnjbRYFch70bE
Output for 5.0.0
jEn0keegubk6HAzYF5Fc
Output for 4.4.9
n1iOPsw16rpf40Be4gJ2
Output for 4.4.8
WbPX1pIYhtjDt7hX65Ui
Output for 4.4.7
TXxwg0q1lDRSNwOY1swR
Output for 4.4.6
W5Q3r4LD4nzD6h446kjR
Output for 4.4.5
o60FN1N6TTY4VBNNhZL2
Output for 4.4.4
DhlA4zb8JD8WE19gtH22
Output for 4.4.3
lZ1GcL53q9YvYV0bPbv8
Output for 4.4.2
sx3PWMu15Xkqqv2b6NUi
Output for 4.4.1
dvjMbTexD77xQC33jAzJ
Output for 4.4.0
n2W0f7KfoDIF3QPRb4Jt
Output for 4.3.11
6gcG9ijAehwfrhn9moSH
Output for 4.3.10
HkOPPBQ7QFLqIV39dIGP
Output for 4.3.9
x10H48ngKDh3kvx9Nn0Y
Output for 4.3.8
j1y8S6z81VYda3rHRldL
Output for 4.3.7
h80m7I60cBMt0uyMf2b6
Output for 4.3.6
r7AIH6406eYyv1ynkhkA
Output for 4.3.5
I49T8l9z5OgVjJsBIxj5
Output for 4.3.4
HllNr4ktgOveBEXNXA75
Output for 4.3.3
I5Q2RC5Xy87i1n8xWgL7
Output for 4.3.2
y9Nvy577vaj8YSIe6i9Z
Output for 4.3.1
M6UOwmfznNRuvfLD0k7m
Output for 4.3.0
It9mTU986FFP74eG0Lwc