3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function keygen($length=10) { $key = ''; list($usec, $sec) = explode(' ', microtime()); mt_srand((float) $sec + ((float) $usec * 100000)); $inputs = array_merge(range('z','a'),range(0,9),range('A','Z')); for($i=0; $i<$length; $i++) { $key .= $inputs{mt_rand(0,61)}; } return $key; } echo keygen(2);
Output for 7.2.0
sh
Output for 7.1.7
Oj
Output for 7.1.6
do
Output for 7.1.5
Sw
Output for 7.1.0
UQ
Output for 7.0.20
Vh
Output for 7.0.14
Ah
Output for 7.0.6
on
Output for 4.4.2, 7.0.5
tp
Output for 7.0.4
s6
Output for 7.0.3
hC
Output for 7.0.2
NY
Output for 7.0.1
FU
Output for 7.0.0
Ul
Output for 5.6.28
jT
Output for 5.6.21
Sr
Output for 5.6.20
XX
Output for 5.6.19
La
Output for 5.6.18
aN
Output for 5.6.17
yq
Output for 5.6.16
1h
Output for 5.6.15
v7
Output for 5.6.14
he
Output for 5.6.13
YG
Output for 5.6.12
Yb
Output for 5.6.11
NM
Output for 5.6.10
JJ
Output for 5.6.9
m9
Output for 5.6.8
HA
Output for 5.5.35
pP
Output for 5.5.34
I9
Output for 5.5.33
0p
Output for 5.5.32
Yt
Output for 5.5.31
TJ
Output for 5.5.30
1g
Output for 5.5.28 - 5.5.29
g7
Output for 5.5.27
P6
Output for 5.5.26
S1
Output for 5.5.25
og
Output for 5.5.24
MT
Output for 5.4.45
Vr
Output for 5.4.44
2v
Output for 5.4.43
zP
Output for 5.4.42
DI
Output for 5.4.41
gY
Output for 5.4.40
ei
Output for 5.4.39
yd
Output for 5.4.38
g8
Output for 5.4.37
GO
Output for 5.4.36
8P
Output for 5.4.35
HG
Output for 5.4.34
O3
Output for 5.4.32
mE
Output for 5.4.31
pV
Output for 5.4.30
07
Output for 5.4.29
uS
Output for 5.4.28
LT
Output for 5.4.27
hK
Output for 5.4.26
LY
Output for 5.4.25
9c
Output for 5.4.24
UO
Output for 5.4.23
e8
Output for 5.4.22
3F
Output for 5.4.21
x9
Output for 5.4.20
73
Output for 5.4.19
Y1
Output for 5.4.18
t4
Output for 5.4.17
Zk
Output for 5.4.16
gZ
Output for 5.4.15
ob
Output for 5.4.14
7L
Output for 5.4.13
qV
Output for 5.4.12
vb
Output for 5.4.11
sD
Output for 5.3.15, 5.4.10
IV
Output for 5.4.9
tm
Output for 5.4.8
4F
Output for 5.4.7
wj
Output for 5.4.6
pF
Output for 5.4.5
ci
Output for 5.4.4
9A
Output for 5.4.3
xU
Output for 5.4.2
b5
Output for 5.4.1
EW
Output for 5.4.0
oz
Output for 5.3.29
gg
Output for 5.3.28
G9
Output for 5.3.27
57
Output for 5.3.26
Hv
Output for 5.3.25
9i
Output for 5.3.24
Ei
Output for 5.3.23
br
Output for 5.3.22
wa
Output for 5.3.21
0e
Output for 5.3.20
BQ
Output for 5.3.19
bQ
Output for 5.3.18
H5
Output for 5.3.17
ea
Output for 5.3.16
lm
Output for 5.3.14
F6
Output for 5.3.13
3m
Output for 5.3.12
Jp
Output for 5.3.11
md
Output for 5.3.10
RY
Output for 5.3.9
7M
Output for 5.3.8
NI
Output for 5.3.7
1c
Output for 5.3.6
jj
Output for 5.3.5
zK
Output for 5.3.4
ef
Output for 5.3.3
ng
Output for 5.3.2
lb
Output for 5.3.1
OK
Output for 5.3.0
bh
Output for 5.2.17
P4
Output for 5.2.16
pC
Output for 5.2.15
SI
Output for 5.2.14
qL
Output for 5.2.13
r9
Output for 5.2.12
1t
Output for 5.2.11
WO
Output for 5.2.10
op
Output for 5.2.9
By
Output for 5.2.8
np
Output for 5.2.7
fs
Output for 5.2.6
gM
Output for 5.2.5
12
Output for 5.2.4
gB
Output for 5.2.3
TG
Output for 5.2.2
EM
Output for 5.2.1
jQ
Output for 5.2.0
5m
Output for 5.1.6
YH
Output for 5.1.5
C4
Output for 5.1.4
dB
Output for 5.1.3
Li
Output for 5.1.2
0b
Output for 5.1.1
vA
Output for 5.1.0
QP
Output for 5.0.5
Of
Output for 5.0.4
3H
Output for 5.0.3
x3
Output for 5.0.2
bX
Output for 5.0.1
zz
Output for 5.0.0
ML
Output for 4.4.9
3c
Output for 4.4.8
hB
Output for 4.4.7
zk
Output for 4.4.6
vw
Output for 4.4.5
pc
Output for 4.4.4
sm
Output for 4.4.3
Fs
Output for 4.4.1
4S
Output for 4.4.0
Ic
Output for 4.3.11
YD
Output for 4.3.10
Jn
Output for 4.3.9
bs
Output for 4.3.8
Rl
Output for 4.3.7
mP
Output for 4.3.6
jA
Output for 4.3.5
27
Output for 4.3.4
E7
Output for 4.3.3
Rn
Output for 4.3.2
Gl
Output for 4.3.1
g6
Output for 4.3.0
E3