3v4l.org

run code in 150+ 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();
Output for 7.1.0
qbFh2Arr8x
Output for 7.0.14
XByqiZEDeA
Output for 7.0.6, 7.0.10
iG3r6zLl0L
Output for 7.0.9
smEgEBmG8h
Output for 7.0.8
IznUVVvK1F
Output for 5.4.30, 7.0.7
9AnFP56kFV
Output for 5.6.14, 7.0.5
qhtCMJtYYe
Output for 7.0.4
szDapFbaEJ
Output for 5.5.23, 7.0.3
8TqEG7nSgR
Output for 7.0.2
p2BvQzqg3l
Output for 5.6.20, 7.0.1
RWcTeBfL4D
Output for 5.4.29, 5.4.43, 7.0.0
pwMBJ3FFOg
Output for 5.6.28
m6XoKQz4vs
Output for 5.6.25
RPd661P9pU
Output for 5.4.19, 5.6.24
uvWplmZxhl
Output for 5.6.23
YthwJp2xEj
Output for 5.5.15, 5.6.22
poP4CoxH2c
Output for 5.6.21
JEyS11qsd0
Output for 5.6.19
wDV2e10IHo
Output for 5.6.13, 5.6.18
VpCDb0JmF7
Output for 5.6.17
X9CdtBxyR6
Output for 5.6.16
7rSK6EJIvC
Output for 5.4.15, 5.4.20, 5.6.15
kAV8HWqaWc
Output for 5.6.8, 5.6.12
Y2kW5aL5xt
Output for 5.6.11
tfbFXecG2I
Output for 5.5.11, 5.6.10
vR8qmi5uXp
Output for 5.6.9
3XU1HIw3SJ
Output for 5.6.7
bAfn0cfUaA
Output for 5.6.6
0ickQIvSwr
Output for 5.6.5
AZGHCw6kI5
Output for 5.6.4
HOaSZsENk6
Output for 5.5.20, 5.6.3
GzqMmmYnck
Output for 5.4.42, 5.6.2
NOfHc4XyVK
Output for 5.6.1
OpsG6GHAxh
Output for 5.6.0
DdFbwPzPu6
Output for 5.5.7, 5.5.38
p5dz17vXVm
Output for 5.5.37
DNQoT4riBu
Output for 5.2.2, 5.5.36
qvwm3YZPGN
Output for 5.5.35
WKxkK5p5Fh
Output for 5.5.34
Thua7lNa0X
Output for 5.5.3, 5.5.18, 5.5.28, 5.5.33
OgUFNIbfdJ
Output for 5.5.32
xmGzsqmkc6
Output for 5.5.31
Dj5FlQ7VVe
Output for 5.4.40, 5.5.30
mewEEgTH3R
Output for 5.5.10, 5.5.29
ULtJVWJmEu
Output for 5.5.21, 5.5.27
m3IwhXHEqA
Output for 5.5.26
j0Ltn0bsQu
Output for 5.5.25
xtMc1yDtqT
Output for 5.5.24
qcFnbpSTfs
Output for 5.5.6, 5.5.22
Jft50FG0R1
Output for 5.5.19
3ScFQV4wS6
Output for 5.4.21, 5.5.16
PkYvIVdnDP
Output for 5.5.14
6rqG99AcVq
Output for 5.5.13
fUAUciK73x
Output for 5.5.12
t0Yz5A1MGq
Output for 5.5.9
ubHOkTAHTh
Output for 5.5.8
BmjAoIwEiA
Output for 5.4.27, 5.5.5
2GR4sYmynT
Output for 5.5.4
Lgy7Xbq0mO
Output for 5.5.2
EgmWe0Bcv8
Output for 5.5.1
LJLhlipMbn
Output for 5.5.0
svQUKovKg2
Output for 5.4.45
eRWXVNenQg
Output for 5.4.44
OUR1bNvH11
Output for 5.4.41
dm5gp4eRTA
Output for 5.4.39
xNspiAkEur
Output for 5.4.38
HVEfyhYdmG
Output for 5.4.37
OOmpluarpD
Output for 5.4.36
muRNNpOFWF
Output for 5.4.35
iV6rEFe4FZ
Output for 5.4.34
sDBqccf9qD
Output for 5.4.32
LMk3Aw4kYU
Output for 5.4.31
phO1GrNkDj
Output for 5.4.28
aPJlQaUBfQ
Output for 5.4.26
z63ZUWAUZs
Output for 5.4.25
Zg1Pu8vemV
Output for 5.4.24
C18HmclsYN
Output for 5.4.23
06ebrOstc8
Output for 5.4.22
zcpw3cZUxk
Output for 5.4.18
PZmFxTBDU8
Output for 5.4.17
Ujquvzcqf6
Output for 5.4.16
0nZXNM08co
Output for 5.3.20, 5.4.0, 5.4.14
GQPzxoROlI
Output for 5.4.13
W3GotmLxRt
Output for 5.4.12
LU5vSM4gKx
Output for 5.4.11
M93uX894or
Output for 5.4.6, 5.4.10
Jyr2x2Zi4W
Output for 5.4.9
lPOLWS7mCI
Output for 5.4.8
0v05s5x3Be
Output for 5.4.4, 5.4.7
23DmqIQ2tT
Output for 5.4.5
pG0nzOy64y
Output for 5.4.3
hUk4ZrMmQK
Output for 5.3.1, 5.3.17, 5.4.2
z5WJMJizSQ
Output for 5.4.1
CN1cpMnwUF
Output for 5.3.29
y3VoqWvChF
Output for 5.3.28
ApA66K4OhM
Output for 5.2.12, 5.3.27
VcZzSW5Bwx
Output for 5.3.26
os4d76p3U9
Output for 5.3.25
yz4UAF5XH7
Output for 5.3.24
XQer4s6hax
Output for 5.3.23
9Q3ThIZU7V
Output for 5.3.22
OrEZ0Pksee
Output for 5.3.21
nIwpeaJpLW
Output for 5.3.19
8w7mbTEXF7
Output for 5.3.18
XG70aFyftY
Output for 5.3.16
ilb7fyJOVv
Output for 5.3.15
BRmHGwrf0P
Output for 5.3.13 - 5.3.14
fwv1mwuBOW
Output for 5.3.12
8zqBFK6CNG
Output for 5.3.11
DEEWFMnAnJ
Output for 5.3.10
QcuhoXHan6
Output for 5.2.8, 5.3.9
sBIaOPuRmJ
Output for 5.3.8
Hh6cgmSZTd
Output for 5.3.7
IXhtZQ4yA3
Output for 5.3.6
ehB1HS7MTx
Output for 5.2.14, 5.2.16, 5.3.5
X3NIzG0WNZ
Output for 5.3.4
m8YlGsM1wz
Output for 5.3.3
uVhaG0FdLK
Output for 5.3.2
RO0LFLhAIg
Output for 5.3.0
sIIlHXosB8
Output for 5.2.17
foJeNKkFXj
Output for 5.2.15
6wWjyxfY87
Output for 5.2.13
xfuYZBF3E1
Output for 5.2.11
CsPO75doPx
Output for 5.2.10
uWrXZtvTzH
Output for 5.2.9
HWLQVaGCSX
Output for 5.2.7
feLInjv6Fh
Output for 5.2.6
Wcisv4bP1a
Output for 5.2.5
YGw4SnrXPC
Output for 5.2.4
HOuUYNYkPg
Output for 5.2.3
PF8q2oJSo1
Output for 5.2.1
3MsK8E8gAz
Output for 5.2.0
fwP8cBaIFN
Output for 5.1.6
Nlm6d9gxE0
Output for 5.1.5
zbSmeMSJHP
Output for 5.1.4
MZFgVN3zCt
Output for 5.1.3
YfRPZrrxqN
Output for 5.1.2
mfxMMt4uVC
Output for 5.1.1
DxluaD8sqL
Output for 5.1.0
yC4JF8ebuQ
Output for 5.0.5
qD9Xk6VGL9
Output for 5.0.1, 5.0.4
HoHTw0PicP
Output for 5.0.0, 5.0.2 - 5.0.3
TMSksO8nhb
Output for 4.3.5, 4.3.9 - 4.3.11, 4.4.1, 4.4.7, 4.4.9
xGERyqy7A1
Output for 4.4.3, 4.4.5, 4.4.8
9N7nxPCiyk
Output for 4.3.3, 4.3.6, 4.3.8, 4.4.6
VwtnefZvd3
Output for 4.3.0, 4.3.2, 4.3.7, 4.4.0, 4.4.4
WqF397CCTu
Output for 4.4.2
5gxCUYuGfu
Output for 4.3.4
cPFYlyd8i8
Output for 4.3.1
NqtldEqG0W