3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?PHP function randString($y) { $r = 'range'; $l = $r(97, 122); $u = $r(65, 90); $n = $r(0, 9); $a = array_merge($l, $u, $n); $s = ""; for ($i=0;$i<$y;$i++) { $x = $a[array_rand($a)]; if ($x > 9) $x = chr($x); $s .= $x; } return $s; } echo randString(3); ?>
Output for 7.1.0
Adm
Output for 7.0.14
btU
Output for 7.0.7
FJW
Output for 7.0.6
LJd
Output for 7.0.5
FvW
Output for 7.0.4
F6J
Output for 7.0.3
7ed
Output for 7.0.2
auH
Output for 7.0.1
Ym7
Output for 7.0.0
m8y
Output for 5.6.28
a5Y
Output for 5.6.22
pRi
Output for 5.6.21
gdf
Output for 5.6.20
B5t
Output for 5.6.19
KxX
Output for 5.6.18
G2O
Output for 5.6.17
nLf
Output for 5.6.16
2oL
Output for 5.6.15
5mx
Output for 5.6.14
GLO
Output for 5.6.13
dDQ
Output for 5.6.12
tZh
Output for 5.6.11
2JI
Output for 5.6.10
Z0o
Output for 5.6.9
vu4
Output for 5.6.8
ght
Output for 5.6.7
R8E
Output for 5.6.6
5Jf
Output for 5.6.5
lmP
Output for 5.6.4
mMc
Output for 5.6.3
ecw
Output for 5.6.2
S4G
Output for 5.6.1
HiG
Output for 5.6.0
15b
Output for 5.5.36
khc
Output for 5.5.35
idH
Output for 5.5.34
jZt
Output for 5.5.33
yji
Output for 5.5.32
bRi
Output for 5.5.31
qve
Output for 5.5.30
MxX
Output for 5.5.29
s2c
Output for 5.5.28
iPl
Output for 5.5.27
LRu
Output for 5.5.26
9is
Output for 5.5.25
v5b
Output for 5.5.24
Y8A
Output for 5.5.23
VU9
Output for 5.5.22
D5B
Output for 5.5.21
ez3
Output for 5.5.20
u6E
Output for 5.5.19
Pb8
Output for 5.5.18
9cy
Output for 5.5.16
D7e
Output for 5.5.15
8yO
Output for 5.5.14
Xc1
Output for 5.5.13
KUM
Output for 5.5.12
gsu
Output for 5.5.11
SGY
Output for 5.5.10
pLf
Output for 5.5.9
UW6
Output for 5.5.8
LCB
Output for 5.5.7
guY
Output for 5.5.6
iVr
Output for 5.5.5
EYG
Output for 5.5.4
KTD
Output for 5.5.3
hKD
Output for 5.5.2
wrk
Output for 5.5.1
sQp
Output for 5.5.0
hjx
Output for 5.4.45
ej5
Output for 5.4.44
87j
Output for 5.4.43
hOo
Output for 5.4.42
Zip
Output for 5.4.41
ttu
Output for 5.4.40
dJD
Output for 5.4.39
CoK
Output for 5.4.38
OM1
Output for 5.4.37
tIq
Output for 5.4.36
C92
Output for 5.4.35
5GW
Output for 5.4.34
rca
Output for 5.4.32
pad
Output for 5.4.31
N4X
Output for 5.4.30
L1c
Output for 5.4.29
AvO
Output for 5.4.28
f1P
Output for 5.4.27
uBc
Output for 5.4.26
990
Output for 5.4.25
HzO
Output for 5.4.24
XOW
Output for 5.4.23
vvL
Output for 5.4.22
2eY
Output for 5.4.21
8Nr
Output for 5.4.20
8eS
Output for 5.4.19
2LT
Output for 5.4.18
OHa
Output for 5.4.17
aFU
Output for 5.4.16
Baw
Output for 5.4.15
x3r
Output for 5.4.14
aVM
Output for 5.4.13
1Yu
Output for 5.4.12
N2L
Output for 5.4.11
MO6
Output for 5.4.10
nrR
Output for 5.4.9
Vc1
Output for 5.4.8
J3P
Output for 5.4.7
uhn
Output for 5.4.6
Yew
Output for 5.4.5
pjj
Output for 5.4.4
6C9
Output for 5.4.3
cfo
Output for 5.4.2
vL0
Output for 5.4.1
niC
Output for 5.4.0
pll
Output for 5.3.29
Ew2
Output for 5.3.28
1I6
Output for 5.3.27
z1W
Output for 5.3.26
PvF
Output for 5.3.25
m1J
Output for 5.3.24
2i9
Output for 5.3.23
q7k
Output for 5.3.22
d4y
Output for 5.3.21
thr
Output for 5.3.20
4NG
Output for 5.3.19
j40
Output for 5.3.18
61G
Output for 5.3.17
L0F
Output for 5.3.16
C5e
Output for 5.3.15
1gT
Output for 5.3.14
0cJ
Output for 5.3.13
KFa
Output for 5.3.12
2FK
Output for 5.3.11
DBX
Output for 5.3.10
aoB
Output for 5.3.9
Z2N
Output for 5.3.8
OBa
Output for 5.3.7
LdA
Output for 5.3.6
4m7
Output for 5.3.5
TpT
Output for 5.3.4
ddU
Output for 5.3.3
ZO7
Output for 5.3.2
2dz
Output for 5.3.1
3QD
Output for 5.3.0
siU
Output for 5.2.17
WHq
Output for 5.2.16
neg
Output for 5.2.15
dgb
Output for 5.2.14
Oq1
Output for 5.2.13
pnd
Output for 5.2.12
JVq
Output for 5.2.11
BFv
Output for 5.2.10
bJY
Output for 5.2.9
xc0
Output for 5.2.8
Mys
Output for 5.2.7
Tub
Output for 5.2.6
EdM
Output for 5.2.5
yzV
Output for 5.2.4
S83
Output for 5.2.3
aTf
Output for 5.2.2
aNo
Output for 5.2.1
Jt2
Output for 5.2.0
x9I
Output for 5.1.6
Ntg
Output for 5.1.5
Zr7
Output for 5.1.4
hRx
Output for 5.1.3
1Kw
Output for 5.1.2
DZw
Output for 5.1.1
dN2
Output for 5.1.0
rM0
Output for 5.0.5
PTk
Output for 5.0.4
VUa
Output for 5.0.3
Vbc
Output for 5.0.2
BVY
Output for 5.0.1
Dfj
Output for 5.0.0
Kti
Output for 4.4.9
nkF
Output for 4.4.8
6X6
Output for 4.4.7
1Mk
Output for 4.4.6
BFT
Output for 4.4.5
aXC
Output for 4.4.4
DQl
Output for 4.4.3
dLP
Output for 4.4.2
3TF
Output for 4.4.1
pdo
Output for 4.4.0
ATu
Output for 4.3.11
qz2
Output for 4.3.10
ttn
Output for 4.3.9
pcZ
Output for 4.3.8
TbB
Output for 4.3.7
wjZ
Output for 4.3.6
IPU
Output for 4.3.5
BzZ
Output for 4.3.3 - 4.3.4
uK8
Output for 4.3.2
osD
Output for 4.3.1
C6C
Output for 4.3.0
4r7