3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function generateRandomString($length = 10) { $characters = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; $randomString = ''; for ($i = 0; $i < $length; $i++) { $randomString .= $characters[rand(0, strlen($characters) - 1)]; } return $randomString; } echo generateRandomString();
Output for 7.1.0
wbzLtVa1Hs
Output for 7.0.14
7DGa93WYaZ
Output for 7.0.10
iH9cf87kBp
Output for 7.0.9
1KkvF7NjY1
Output for 7.0.8
lcQ9Ji0yAj
Output for 7.0.7
9nm2oRT0lP
Output for 7.0.6
gBwWS3qQ1S
Output for 7.0.5
xl5ILLQLV3
Output for 7.0.4
oeDUqF0woi
Output for 7.0.3
1SrcenWVvA
Output for 7.0.2
3cqJ55MDqQ
Output for 7.0.1
IEu3PN0lhw
Output for 7.0.0
Hot5sXXYGy
Output for hhvm-3.12.0
nRgcJZaRBl
Output for hhvm-3.10.0
q15uRdNVfI
Output for 5.6.28
GRYDcA1omC
Output for 5.6.25
m7R5XwJsqC
Output for 5.6.24
41IAXjXXPO
Output for 5.6.23
3l9UDcNBFO
Output for 5.6.22
cIZkZjOMCx
Output for 5.6.21
opLhxiwifk
Output for 5.6.20
ZguI617nyU
Output for 5.6.19
N9hJ4dRARw
Output for 5.6.18
bBjLSzAeHO
Output for 5.6.17
TyTqTz1IoK
Output for 5.6.16
IlVKNITTxI
Output for 5.6.15
KGA27AViQ0
Output for 5.6.14
i615j4JaL2
Output for 5.6.13
0nCt36IIqB
Output for 5.6.12
MTe9R8Vhfh
Output for 5.6.11
UQ6vr0tBh4
Output for 5.6.10
cvrOdHndQZ
Output for 5.6.9
5uu7l2GZGc
Output for 5.6.8
1lxmlUywEp
Output for 5.6.7
9JGGTNr7Ti
Output for 5.6.6
vdTVNOBrhT
Output for 5.6.5
FzsdUP9Ml1
Output for 5.6.4
8s8I1fxaLz
Output for 5.6.3
0d4TrBRz7i
Output for 5.6.2
IMW6k99FRR
Output for 5.6.1
kW0tMpqSOc
Output for 5.6.0
egdUpht7cN
Output for 5.5.38
YccxzlMrWm
Output for 5.5.37
oZx1t0uwSC
Output for 5.5.36
puYiGgrrIK
Output for 5.5.35
UYxh7RQRtC
Output for 5.5.34
iKPk3jwfcr
Output for 5.5.33
paMAw6FZ4m
Output for 5.5.32
LNnh0L5rZ2
Output for 5.5.31
nhNsAUckiz
Output for 5.5.30
829kANaa2h
Output for 5.5.29
6mTQu6WAvA
Output for 5.5.28
wmWuf1zrCb
Output for 5.5.27
cZU5jF7nPe
Output for 5.5.26
RuvYhIoiZ8
Output for 5.5.25
iL6BFwBcfi
Output for 5.5.24
9fJJYz89fi
Output for 5.5.23
gqEcY5rRcE
Output for 5.5.22
N3taWvEwXN
Output for 5.5.21
GP1epVNIUc
Output for 5.5.20
3CIR3VED10
Output for 5.5.19
iJeRcHWb0p
Output for 5.5.18
rtnsmrbysZ
Output for 5.5.16
kl0BFNdVia
Output for 5.5.15
xxd9r7WG02
Output for 5.5.14
kXnmSIEoGs
Output for 5.5.13
n1IiN9Mfcv
Output for 5.5.12
ADY9a4BvzJ
Output for 5.5.11
RqOqy5HaCv
Output for 5.5.10
OLUe35Or5O
Output for 5.5.9
96hEVZRjfU
Output for 5.5.8
rv1T6BICyo
Output for 5.5.7
8KLXLfhFZU
Output for 5.5.6
yqTGouOQv5
Output for 5.5.5
42wHCR4j7d
Output for 5.5.4
y43q4YpKP4
Output for 5.5.3
6R71XTBzsZ
Output for 5.5.2
YDfGZGsa0Y
Output for 5.5.1
w01PuzRm0C
Output for 5.5.0
PyIYH5Tvyp
Output for 5.4.45
kzfljP24Ze
Output for 5.4.44
Cc1ihmu51l
Output for 5.4.43
14FPII2qwF
Output for 5.4.42
Cnh4mXzHZf
Output for 5.4.41
GHTVsZfSV5
Output for 5.4.40
grFVZtxw0m
Output for 5.4.39
R5iSCHOOWy
Output for 5.4.38
dCX5ZMXqID
Output for 5.4.37
pT4Fy93QGF
Output for 5.4.36
Stn7kA2fkO
Output for 5.4.35
5ms8YX3iSl
Output for 5.4.34
KUCHoxzwd8
Output for 5.4.32
qg5jWklKQN
Output for 5.4.31
IyHyOX9WLX
Output for 5.4.30
tTOwflZ2T1
Output for 5.4.29
NWjoGmfuoQ
Output for 5.4.28
GF5wRbg2At
Output for 5.4.27
ptbbMAVqC4
Output for 5.4.26
YWeLp7h1pr
Output for 5.4.25
fm4Jp0HYzW
Output for 5.4.24
KZ03QbH741
Output for 5.4.23
xo7dk8sSdV
Output for 5.4.22
o4ViJ2xHiV
Output for 5.4.21
Fy7MxgauwQ
Output for 5.4.20
5l42jQQOR3
Output for 5.4.19
CQYmRQibs3
Output for 5.4.18
yA1eqjDcHi
Output for 5.4.17
uxkWuheZzf
Output for 5.4.16
mTgKA5UJVb
Output for 5.4.15
xVr9ZcdMuS
Output for 5.4.14
IZHecz3sbv
Output for 5.4.13
xIlnIpUPZS
Output for 5.4.12
GJMzRY99AI
Output for 5.4.11
ueNt72bb4Q
Output for 5.4.10
uO24xMNwA1
Output for 5.4.9
SboqIQJSiR
Output for 5.4.8
w8P6vi9OfD
Output for 5.4.7
SDaT10PKMb
Output for 5.4.6
NVMcM1bP3Z
Output for 5.4.5
Uu7SzRJyZ9
Output for 5.4.4
26y90mXc2c
Output for 5.4.3
OuE7H8wkj2
Output for 5.4.2
7CzftofQXs
Output for 5.4.1
C0NfqU8UYv
Output for 5.4.0
zuFfwUVYLl
Output for 5.3.29
WO8QxIzA5P
Output for 5.3.28
5HSsQHTO3y
Output for 5.3.27
kHTDX0Dz4y
Output for 5.3.26
nKgD2OT7Mu
Output for 5.3.25
lqAIpSgWMZ
Output for 5.3.24
qiBjUYC41t
Output for 5.3.23
fvX2ihYGTq
Output for 5.3.22
z2VgvOROX3
Output for 5.3.21
FyodQZBSTU
Output for 5.3.20
O9Gt9db76q
Output for 5.3.19
IkRQlU1Kvf
Output for 5.3.18
YpbcugcxN4
Output for 5.3.17
4durf7rJQK
Output for 5.3.16
0LmdSuntml
Output for 5.3.15
HDNYFCm6sv
Output for 5.3.14
gXLbaLPYfn
Output for 5.3.13
KNuC84soNo
Output for 5.3.12
itm1FCusAw
Output for 5.3.11
YdZNBAlqud
Output for 5.3.10
z3g1syV4wN
Output for 5.3.9
oLgVM3jWlN
Output for 5.3.8
nd0oBg0xDv
Output for 5.3.7
J7Grty4d4U
Output for 5.3.6
2Lb6OX2O5h
Output for 5.3.5
STSLd1bela
Output for 5.3.4
HfMVcxw36g
Output for 5.3.3
ku395KVwQG
Output for 5.3.2
znDu6wKYAW
Output for 5.3.1
kvZrlQHV2Q
Output for 5.3.0
BFr75bnyrH
Output for 5.2.17
LWdgUQ7WSl
Output for 5.2.16
uNmdXE86jh
Output for 5.2.15
Q1Rp7WOjoX
Output for 5.2.14
KRzznoUzsX
Output for 5.2.13
OlQllOBf3Y
Output for 5.2.12
4VthS3wwWo
Output for 5.2.11
nr60Zvv5ed
Output for 5.2.10
nkmXPzdmcl
Output for 5.2.9
MPhq1FSNTO
Output for 5.2.8
Tzl821xMY3
Output for 5.2.7
UWaLD2K0n8
Output for 5.2.6
7jSL2QzpHh
Output for 5.2.5
gvlP2ZoDkv
Output for 5.2.4
ve4QXNmcGE
Output for 5.2.3
qkbqHrm61L
Output for 5.2.2
73yDoXDW0s
Output for 5.2.1
IhggiN7dYu
Output for 5.2.0
qE5GIZ2udE
Output for 5.1.6
3VxHBoHnEf
Output for 5.1.5
0BKvXwWkLo
Output for 5.1.4
SiIDSo8NVk
Output for 5.1.3
m1UO4bucih
Output for 5.1.2
m6h1Sj5mKi
Output for 5.1.1
LPmLMaAOrJ
Output for 5.1.0
3BogML7NmA
Output for 5.0.5
GvuwoGw1xP
Output for 5.0.4
L914PdZSQG
Output for 5.0.3
mKZj4yy6EL
Output for 5.0.2
je3TbbJ3YK
Output for 5.0.1
6UNQVNcchO
Output for 5.0.0
u5mMUmIQIQ
Output for 4.4.9
FON6O13Xec
Output for 4.4.8
5FcoNyB9bi
Output for 4.4.7
DmjHi2bqpH
Output for 4.4.6
Unh5cfoCXr
Output for 4.4.5
qLLoi7usXT
Output for 4.4.4
18UWfbyiJi
Output for 4.4.3
TiWpCSerDu
Output for 4.4.2
7fj6L8FCoc
Output for 4.4.1
91AwZZK4zI
Output for 4.4.0
GjfqTBlNBR
Output for 4.3.11
YHmiRWRK7C
Output for 4.3.10
ueuEAvXxr8
Output for 4.3.9
5TQOU2kFdG
Output for 4.3.8
SEdfJ9lMQW
Output for 4.3.7
nHVfeDtfjI
Output for 4.3.6
EBVCRIuYFB
Output for 4.3.5
XzhbTe8utD
Output for 4.3.4
SWCr8txbRT
Output for 4.3.3
DUjgv3flqS
Output for 4.3.2
c2wLv2KE53
Output for 4.3.1
kLQR4gZG0W
Output for 4.3.0
Cfs5AzWh8a