3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function randomString($length = 6) { $str = ""; $characters = array_merge(range('A','Z'), range('a','z'), range('0','9')); $max = count($characters) - 1; for ($i = 0; $i < $length; $i++) { $rand = mt_rand(0, $max); $str .= $characters[$rand]; } return $str; } echo randomString();
Output for 7.1.0
scFrTX
Output for 7.0.14
RFnd1w
Output for 7.0.6
tZdWM5
Output for 7.0.5
gAOh5u
Output for 7.0.4
uNr02v
Output for 7.0.3
RwBxEM
Output for 7.0.2
QX60FB
Output for 7.0.1
ZyMWPa
Output for 7.0.0
8LUcaE
Output for hhvm-3.12.0
iby2kY
Output for hhvm-3.10.0
h2FYfe
Output for 5.6.28
13eYQt
Output for 5.6.21
d6uxHX
Output for 5.6.20
SlNp0z
Output for 5.6.19
lpoxW4
Output for 5.6.18
ke082z
Output for 5.6.17
jytmra
Output for 5.6.16
vksZ3U
Output for 5.6.15
LYAvvB
Output for 5.6.14
lmdcJs
Output for 5.6.13
h9B1Bu
Output for 5.6.12
gGCUzm
Output for 5.6.11
foMFOA
Output for 5.6.10
pJbPR3
Output for 5.6.9
Te1Kzd
Output for 5.6.8
ddt7U6
Output for 5.6.7
S4lvSC
Output for 5.5.35
IlzDAt
Output for 5.5.34
tvDg0P
Output for 5.5.33
34tiyh
Output for 5.5.32
tYqU7V
Output for 5.5.31
hajwQJ
Output for 5.5.30
jfFcNA
Output for 5.5.29
KYy4NY
Output for 5.5.28
8GVivr
Output for 5.5.27
hJLH8q
Output for 5.5.26
vEcE9g
Output for 5.5.25
Q3Oozx
Output for 5.5.24
GBpvBu
Output for 5.4.45
1897TA
Output for 5.4.44
oE0pAe
Output for 5.4.43
sRBnbe
Output for 5.4.42
W3WzMw
Output for 5.4.41
Fk7tHh
Output for 5.4.40
i5PP3y
Output for 5.4.39
Eyxple
Output for 5.4.38
3KLsKS
Output for 5.4.37
YWgkXA
Output for 5.4.36
m7lpHw
Output for 5.4.35
ajsBlR
Output for 5.4.34
akwbp8
Output for 5.4.32
7Pc9Gy
Output for 5.4.31
3Uxkqf
Output for 5.4.30
OJknda
Output for 5.4.29
cC27iz
Output for 5.4.28
d9wX3t
Output for 5.4.27
DUnYBL
Output for 5.4.26
hM6mGc
Output for 5.4.25
T5Bzrw
Output for 5.4.24
ML2rDJ
Output for 5.4.23
7fqS8R
Output for 5.4.22
M6Zjp5
Output for 5.4.21
I79kKe
Output for 5.4.20
2VQBrS
Output for 5.4.19
liOJu0
Output for 5.4.18
AvDBW2
Output for 5.4.17
1zTmSE
Output for 5.4.16
BlYnOy
Output for 5.4.15
LtQFI9
Output for 5.4.14
2FRNAM
Output for 5.4.13
aFIkLa
Output for 5.4.12
w9hxoo
Output for 5.4.11
nfiRVk
Output for 5.4.10
iIZx61
Output for 5.4.9
EFHNJX
Output for 5.4.8
fLduhi
Output for 5.4.7
oSnQhG
Output for 5.4.6
ZLVwBW
Output for 5.4.5
xfRbUE
Output for 5.4.4
xlfZxV
Output for 5.4.3
Gfcndj
Output for 5.4.2
vr30iK
Output for 5.4.1
lXn4L3
Output for 5.4.0
HffL32
Output for 5.3.29
15yHto
Output for 5.3.28
UH7J9v
Output for 5.3.27
1S5Szz
Output for 5.3.26
OfnlT2
Output for 5.3.25
h4wYJR
Output for 5.3.24
SyT8eH
Output for 5.3.23
1SBcyO
Output for 5.3.22
HKLsph
Output for 5.3.21
M6y8wY
Output for 5.3.20
s2Lrxa
Output for 5.3.19
xX8GqO
Output for 5.3.18
LDlrzr
Output for 5.3.17
XfZlqO
Output for 5.3.16
r8DrOM
Output for 5.3.15
WiBlZT
Output for 5.3.14
MrU6ks
Output for 5.3.13
0fg7Xx
Output for 5.3.12
DVvsMj
Output for 5.3.11
9wI1zk
Output for 5.3.10
o8pZtz
Output for 5.3.9
N4CxBy
Output for 5.3.8
VsHAUF
Output for 5.3.7
TVRUS7
Output for 5.3.6
KPgkKI
Output for 5.3.5
dEUm2Q
Output for 5.3.4
Q8wg7e
Output for 5.3.3
jNLJfT
Output for 5.3.2
8iMAi8
Output for 5.3.1
iQgf1d
Output for 5.3.0
FwOcLT
Output for 5.2.17
07IVNf
Output for 5.2.16
zV5svj
Output for 5.2.15
fQp0oY
Output for 5.2.14
K4KrT7
Output for 5.2.13
SirQsX
Output for 5.2.12
rxj1Uh
Output for 5.2.11
I4Vokl
Output for 5.2.10
qppoaq
Output for 5.2.9
qcGq82
Output for 5.2.8
5wxPYX
Output for 5.2.7
IyCvHN
Output for 5.2.6
r0mIaX
Output for 5.2.5
vaK0kk
Output for 5.2.4
jS0p58
Output for 5.2.3
KlCgYF
Output for 5.2.2
F3VLWq
Output for 5.2.1
TQf0OJ
Output for 5.2.0
OjxUrO
Output for 5.1.6
5IruVA
Output for 5.1.5
WyO9ac
Output for 5.1.4
yGD11X
Output for 5.1.3
xscTNO
Output for 5.1.2
qcAXR3
Output for 5.1.1
gf36CT
Output for 5.1.0
1zv5I3
Output for 5.0.5
SoYcT5
Output for 5.0.4
CN4RHm
Output for 5.0.3
b2KA2b
Output for 5.0.2
3t3Xtl
Output for 5.0.1
GkzZV2
Output for 5.0.0
q8Mpyy
Output for 4.4.9
cbRMia
Output for 4.4.8
qha9KA
Output for 4.4.7
azH5q8
Output for 4.4.6
HWjFb7
Output for 4.4.5
k18BRO
Output for 4.4.4
w793Q8
Output for 4.4.3
VTmAqI
Output for 4.4.2
aU5Hoo
Output for 4.4.1
4KB3MB
Output for 4.4.0
fwDxKB
Output for 4.3.11
859ek2
Output for 4.3.10
zdDhPC
Output for 4.3.9
W4RZ1H
Output for 4.3.8
3LCnKW
Output for 4.3.7
n6Xd7z
Output for 4.3.6
jceyba
Output for 4.3.5
iUGPn5
Output for 4.3.4
H5ngN4
Output for 4.3.3
WFmXFP
Output for 4.3.2
3XyKKU
Output for 4.3.1
691ujk
Output for 4.3.0
O32Oqw