3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function randomString($length=10,$symbols=false,$uppercase=true) { $grabbag = "abcdefghijklmnopqrstuvwxyz0123456789"; if ($symbols) { $grabbag .= '!@#$%^&*()_+{}-=[]|\\:";\'<,>.?/~`'; } if ($uppercase) { $grabbag .= 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'; } $string = ''; $len = strlen($grabbag)-1; while ($length--) { $string .= $grabbag[rand(0,$len)]; } return $string; } echo randomString(20);
Output for 7.1.0
5dE6Zobji5Jbr7hMJb2t
Output for 7.0.14
kZQIw8WkE1vpoUXRlLCN
Output for 7.0.7
AnV5qFf8o4ADuQoihT7p
Output for 7.0.6
NYbcQeTMmdKCfs2sBrJg
Output for 7.0.5
D06DbM9sH5kslPKAl7rV
Output for 7.0.4
TavZHHfVonvJECb30UWK
Output for 7.0.3
E8PwdQLjn88dEiW7OtGm
Output for 7.0.2
pipWDHmJRRxnHjiu7Lm5
Output for 7.0.1
VnFX0t57dZaukjEWrjml
Output for 7.0.0
hymb4WkkFy0fwQOC9RU1
Output for hhvm-3.12.0
ZDcqUI9aOSXI4H4gwLxr
Output for hhvm-3.10.0
IU10NeZet6T21zS63E6V
Output for 5.6.28
CwbnoZxdWVL4aoDlqLlQ
Output for 5.6.22
q6Id5nZ4iY4YDxjOO0Ib
Output for 5.6.21
zyd0xqusMaEbmvUTcTT3
Output for 5.6.20
ajoKY4IBq0iQotFWDxko
Output for 5.6.19
1CRP06QNrVRuW3mSC7NF
Output for 5.6.18
88XS5y8aFIxRpPJhNtLW
Output for 5.6.17
dAKUHDb6tkn45QZr8ozY
Output for 5.6.16
eRev5cwbqIZ2zAXfCc9o
Output for 5.6.15
8YWW3uClcz3XuFZpWfND
Output for 5.6.14
jT5iGA3hju3yHNooMsdL
Output for 5.6.13
NdiDW6CM02xxVuQB4yxA
Output for 5.6.12
YfcyoswThhzIqMFYkA9P
Output for 5.6.11
OOFQAgqmh7Xk81EFawx3
Output for 5.6.10
rLxNStgdBl2dxucDLQyN
Output for 5.6.9
l1GRqg3VB3rs9pexkOh4
Output for 5.6.8
gQWdIuzfNSDvdkwrMeEk
Output for 5.6.7
zs7q5cxi2kE1clfd0NVU
Output for 5.6.6
0CwuXLc0hacqXVnLtNpp
Output for 5.6.5
7GJCvEbVlbD8ZL13dyb8
Output for 5.6.4
YLCttjybzmIypKs1H8Z5
Output for 5.6.3
tQFEXQ52zn0hedtiKhNp
Output for 5.6.2
1rz2dcbpW3hnb0X7tpFo
Output for 5.6.1
QzK2PggeT2TWRYL1KmNy
Output for 5.6.0
gkDz5PVQxgDQ9lJ8trZ6
Output for 5.5.36
jLdGandZXkoyENERoUzI
Output for 5.5.35
9oH7fBYneUEVC7codZgx
Output for 5.5.34
NkOOxXJ08J2U6zVBClTy
Output for 5.5.33
aTTwBcDCeYAgmkGLwN1p
Output for 5.5.32
PziJahH8MBa4dW5e0OcK
Output for 5.5.31
CDSdu74XAdYOXoqnijVu
Output for 5.5.30
awfo5vMJ8JSbvLTFxqec
Output for 5.5.29
CLlwl7JUxH8KmMuwyF5c
Output for 5.5.28
A01ugdGjLFVVcJrODCvE
Output for 5.5.27
TQDh8rZuI0mpwIxaVD7M
Output for 5.5.26
R4leruSYsOR0lmIghTiS
Output for 5.5.25
KYa0qTF6LQFIViIotCRJ
Output for 5.5.24
hxVGLdok2HKK1KlgDlRl
Output for 5.5.23
NqkQecpwABi2Wpeojq2Z
Output for 5.5.22
QHWPEuZfEofnFXKMfErP
Output for 5.5.21
CdmaUhI07tSqaJRyNtYZ
Output for 5.5.20
Kwg7DZpwVlgJNV2VDBvk
Output for 5.5.19
03gRUx8s3Hjw8WyHOj1w
Output for 5.5.18
2qxozGWAhibLLbVi1nQl
Output for 5.5.16
sJMi39dWanzT9dpzNkdu
Output for 5.5.15
EUeZZymxoBO4Kw2mPfoN
Output for 5.5.14
3aUjM2YqGMXnVIlBxoXe
Output for 5.5.13
tW74sfq6op33KixrKTEz
Output for 5.5.12
KKneWPjitt6R9NreA7Pe
Output for 5.5.11
kYQpoQoyoRWJlPtPLuWS
Output for 5.5.10
NmDT5GKn8ZODiYmt3lA7
Output for 5.5.9
kKzKCGG1x8GRwbjJLL4i
Output for 5.5.8
HyhdUwMveNfEvwo0jUQ8
Output for 5.5.7
5Qfwz71iZ13DzluhGjZ1
Output for 5.5.6
S5G31NFIpUwLHBQ7ZEuo
Output for 5.5.5
BwosTP9YFaac83heXLbi
Output for 5.5.4
enQQwKU17gVLekQULA1P
Output for 5.5.3
PwYFAfxdStsafiCVDPgA
Output for 5.5.2
v7HAtxcqZ35oeNSQHM7Q
Output for 5.5.1
5y3NvqDsSWL63zfIyelx
Output for 5.5.0
pwzJQnDYSsD4li8TXLt6
Output for 5.4.45
kQNhZljYeZNvGdiNdWR8
Output for 5.4.44
sTvUMCPyg61aFGL5UfW5
Output for 5.4.43
QWS5B4IDMU5eAvQ23m0e
Output for 5.4.42
pRWOYFhYfaGJm8jN90Wz
Output for 5.4.41
dVq08l9Mk0ZQxXdiyGy5
Output for 5.4.40
1rarUyMFUHpX6R3Pc7UN
Output for 5.4.39
w5X7UKQ9P4oXnyWlGa47
Output for 5.4.38
URnUeHSWWPBq6RXaODkg
Output for 5.4.37
HmluwVXVKBbyKFSQiQlZ
Output for 5.4.36
d1T1nDFUAQr91wjHnAeB
Output for 5.4.35
c7UQMI1K2CGIL2eHXsNp
Output for 5.4.34
VsOuwhKswDNDTPqXiq2t
Output for 5.4.32
dleFn8Qsz5UhSj43GQMa
Output for 5.4.31
uTmfvtzjlyuzShpiaH9W
Output for 5.4.30
8e529Ze7JZ4GNPAjRoCg
Output for 5.4.29
VGzjBTBOKdTma0iTE6qB
Output for 5.4.28
d4w3Wp3WLqD1SaJyqPLC
Output for 5.4.27
c1gMmn28Gm1MH9xxpdCT
Output for 5.4.26
WbiDWvzvNDfUdJaATTnn
Output for 5.4.25
Q1C2LyXxtGSKH0naQhta
Output for 5.4.24
9TzGqYKUdH6yUf7vIp9T
Output for 5.4.23
kyQuyHF3vtNCWZ7546Ti
Output for 5.4.22
kvhVrY7eKG5elBSJNFby
Output for 5.4.21
sh0DR4DrZaNuKFHXu7qQ
Output for 5.4.20
mVkvYQJe2gT3L2AcJ8Mo
Output for 5.4.19
JkRF8ig5pzjhvFspRngi
Output for 5.4.18
dn1O3pLIxOS4UrzP40vO
Output for 5.4.17
EtNfJJ8a9P9TRncpftJ2
Output for 5.4.16
9ZZqmPM3Kh0F006D22W6
Output for 5.4.15
oNbRfyjZI8YSBK49OblZ
Output for 5.4.14
hMUFe5UZ8pG5ITRGvXBe
Output for 5.4.13
hsffN9KOu7ZidNMj34aH
Output for 5.4.12
1jvThnLBTdNESL7lsJsz
Output for 5.4.11
Iaj4GtrhSFSpxPkK9Trk
Output for 5.4.10
dqrXjFnnqgnbfaiws7Qe
Output for 5.4.9
OskJBdwmDekBY08tMNRV
Output for 5.4.8
X3X3LrwToEC0hnS3dwok
Output for 5.4.7
S7LSUnoYxBC6l0HgzGYv
Output for 5.4.6
JEqCwvlyPI23i38D96Ur
Output for 5.4.5
IkiDzBQUfBqV4LViRxq7
Output for 5.4.4
UXv8OJjkOOyY1pMe8loH
Output for 5.4.3
3NFgXQm0vyMPndPvIvZp
Output for 5.4.2
bpPUhtAc35UPtgGeEeVD
Output for 5.4.1
g5jPLz0xjunEHQbRzYW5
Output for 5.4.0
kgZuhix4bN77Q8Za4tDC
Output for 5.3.29
BW2ZqSPH0Rxr2oZS9yek
Output for 5.3.28
F6e79CsZHXC1KsO2haTG
Output for 5.3.27
Ux7caNRiGyt6BWtpj8Wp
Output for 5.3.26
pEitrEPQejqvqvBpJz0D
Output for 5.3.25
eOjc5YvqrWlKRIgNL4sk
Output for 5.3.24
2vkkieGHtKXPJDl2khsU
Output for 5.3.23
id35TfKc64YgpWd7XjzI
Output for 5.3.22
FcgKWbMoMvGUCU6Lq8JL
Output for 5.3.21
5kzya3klYafnRWttTz31
Output for 5.3.20
kewF3CeTyHTHmkfS8hNr
Output for 5.3.19
kvno4jwRDzYq75UO5OGg
Output for 5.3.18
wtuIqzAdm5SoQoYaMzER
Output for 5.3.17
jHwEYt5ITgLxNGJWRf8A
Output for 5.3.16
1J6WggiUJuZzOmtUgRof
Output for 5.3.15
Bluv94c0EHQ0Ym1zSPoi
Output for 5.3.14
qOzUx09SAkiA3tygY6Vf
Output for 5.3.13
K2Yq2USxua7dg6S5ObbX
Output for 5.3.12
C95DeNNuMcdKS7kD5O0T
Output for 5.3.11
6eiBa0kR0PtmGCEe3hJh
Output for 5.3.10
5MjzzJPU2r6HWtomS634
Output for 5.3.9
TFxGnB4ZqQZaCp3BA4wS
Output for 5.3.8
TBUVjqTGt6cmJO9l2BaG
Output for 5.3.7
nPtKlykcw7Y7cFpJuYBh
Output for 5.3.6
EQvFdU9rdVuc7MKFF5ze
Output for 5.3.5
HVEZ3LZD1HA98ak5zqH9
Output for 5.3.4
ZNTHaPnDiGQf4NIEX9fG
Output for 5.3.3
6mlDlVmXaMhVxmiVLIAE
Output for 5.3.2
cyvnuPnPZG7aSHh1hEcU
Output for 5.3.1
dYktStHLL8QhakGUauZd
Output for 5.3.0
aIKXeDvpdHijbh3stHTs
Output for 5.2.17
JGSc55w7FBAlQQEarFch
Output for 5.2.16
js1EZPV7bNyHPNyV8VQA
Output for 5.2.15
MCbys05ubGcU8Iee6ECW
Output for 5.2.14
yig5Md4NMu2ZNDwpAR02
Output for 5.2.13
JMVY2xvlOwjpbEvAoJny
Output for 5.2.12
RsOkUBYK1fABc2M2He4V
Output for 5.2.11
TBYvBs8sRydpwsiihi0q
Output for 5.2.10
iJuY0MX2AJj5JFr7Z6c5
Output for 5.2.9
RZjN19QnI7oK1F42jOWT
Output for 5.2.8
7sj3AmHsioSEC7dUl00z
Output for 5.2.7
PLcLiqbiKPfWnyNyqdFd
Output for 5.2.6
eHgTrZX65S4qT7UjuXge
Output for 5.2.5
VRnN3jv6lGezxN5Ojo8n
Output for 5.2.4
Trq0asflfoWqHED3i4KY
Output for 5.2.3
WKUzvVlx4mSfWouDKMn8
Output for 5.2.2
5OMFjJG54gSDk55uyM2m
Output for 5.2.1
eIGlgbtg5juJsFXvNyyA
Output for 5.2.0
eJrBu1Yt5s5HP65n6Tq1
Output for 5.1.6
1MzYNPEKUTUQogvXIJ6k
Output for 5.1.5
Xadgb7P8XNX3JpAs1Juc
Output for 5.1.4
ZClL6AKhH2vmDcQkGVtL
Output for 5.1.3
plHx8BICM3LlreMOdtJL
Output for 5.1.2
KwdruUGoxn9U89OPOQx3
Output for 5.1.1
651igF9nZhLJ2ITNAl6c
Output for 5.1.0
W1KwtuyOVgw89adUbh9l
Output for 5.0.5
Ojoh3e5CLLxu5fMJSF5S
Output for 5.0.4
fdcQYJZzhjKXWTQXPndL
Output for 5.0.3
j9o3ozxInCVhQCLTUXuc
Output for 5.0.2
hEXBmWtv71E3Npa2VQ6f
Output for 5.0.1
EWVE30fQWwFYy67NqCex
Output for 5.0.0
k3aJVYrufCytPOcqse1q
Output for 4.4.9
SgZoQY4UwyWNu5IMW9ac
Output for 4.4.8
e8Z0yLbSFnT3Vjswfk6D
Output for 4.4.7
7TNLT2zD6gDVpin3HPYB
Output for 4.4.6
RETizAn9SKOjNzALn4xq
Output for 4.4.5
5pjuptNW3GuZShUbRXft
Output for 4.4.4
5qmJW9wLZeOIse0DBRTc
Output for 4.4.3
9RlovrbrY7UB2ux3EP89
Output for 4.4.2
tLeKLEtyWRusGNQx0soG
Output for 4.4.1
IzzJtMVbE3nb9cp5oags
Output for 4.4.0
1OrK01NFS5E9gLxVSfP1
Output for 4.3.11
8CmT267BnRmUWCA3ApAf
Output for 4.3.10
dvdZRiuXaqAugjPuzGsc
Output for 4.3.9
RLpdJxiZX77LMXO92QtW
Output for 4.3.8
5LR8HX2OxRXj45lxGYm2
Output for 4.3.7
59sW1fikdJuWaCJCXHI2
Output for 4.3.6
2jpiclDCz51g42FXaJwD
Output for 4.3.5
ZzDlU9LT1OcfyrGOANOZ
Output for 4.3.4
hFZokpjB12kla2AU1qDH
Output for 4.3.3
htI7ur1754KtKbBg2L0M
Output for 4.3.2
ihss0wtlvaVqCHw72EYw
Output for 4.3.1
lcTfFKrTtoiTxh06Lm8Q
Output for 4.3.0
52sC1CF4NfXJhsGi9rRY