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; } // APPEL // Génère une chaine de longueur 20 echo $chaine = generateRandomString(20);
Output for 7.1.0
3lFmfCxG22wnPdB7snE7
Output for 7.0.14
o3DwamAvAS964CGrHLYH
Output for 7.0.6
SiwInYPgNcG4C155Z9Uv
Output for 7.0.5
E0vmY60GBtLCOaMXfISx
Output for 7.0.4
GvAupmrI93t0WElAEEGD
Output for 7.0.3
fADwkmFNkp98qKWOh8ZM
Output for 7.0.2
k8eIfgp7Ep75SyAHWELk
Output for 7.0.1
1GJwDghaxuoqphyMQROV
Output for 7.0.0
5w6kJIaXxuCxfZrvpWMl
Output for 5.6.28
eUdbjtdgScoS4mEmGYwh
Output for 5.6.21
99IX0JmgpoOBZRJyRcYo
Output for 5.6.20
aEurZzx9mblwKvnR5TOC
Output for 5.6.19
FKSsWiS5yaCDE9NdzMJV
Output for 5.6.18
IJ47fxXaBsOjRTHzsB5d
Output for 5.6.17
vUDVKkwTj4O3bWsSRPAL
Output for 5.6.16
TPwexFbyUnel578BupRh
Output for 5.6.15
Z0f3Yiw0Zqow545ivYhR
Output for 5.6.14
BtfoTg7t5fBRUJFCokDi
Output for 5.6.13
7Khzk8GpOIKCScLsyVTp
Output for 5.6.12
ZL4PXaxZKG0f9zOL2Lse
Output for 5.6.11
4fE3sDSd0KQ6XV6KAG92
Output for 5.6.10
egDEPUpPiAxXi4WM78UJ
Output for 5.6.9
2giQBs1WCqiSAn24elqq
Output for 5.6.8
pD4Sr06CkN7BjdsgCHBw
Output for 5.6.7
D48KnwyC2s32qb64UXdk
Output for 5.5.35
vK7NqEeVFtOCXPGKeVLv
Output for 5.5.34
FbZhBeVFB6QhRfEjSNfp
Output for 5.5.33
lS0EiC1aN0egrT1kDpfU
Output for 5.5.32
ayiOIqbgcXxj9hsVfzrX
Output for 5.5.31
I6VeA5YTu8lQTxPOloAz
Output for 5.5.30
GCPHySWpT7C1znqx9y3J
Output for 5.5.29
DMxvCW2b6gwUxJptibLC
Output for 5.5.28
lnXyig4GlugnsHGX8BVM
Output for 5.5.27
hHzPmqeQuUpZcgtLRpVy
Output for 5.5.26
z9Sd1zALRP8ndk3Uddz3
Output for 5.5.25
6dFbOQ0os3JB0gL0g4DC
Output for 5.5.24
arNNAUQ4CGkSfOORaULb
Output for 5.4.45
pdPEjDByYCq6SR0oOIIH
Output for 5.4.44
OVNcA6re03RKXVl33Zy2
Output for 5.4.43
CmTrLHg3CYRSP34Ibmox
Output for 5.4.42
FvenxuKGMXHVF5Bhv6F8
Output for 5.4.41
fI3w6gwZnuPLIqEh6AaO
Output for 5.4.40
izvAcGbrUBTc7zoEpTPu
Output for 5.4.39
NeRDOwOUCYMxu3Qi7b5z
Output for 5.4.38
xaFn0UKfRqWeFcojHTVC
Output for 5.4.37
KztE0uyaJV9bO3JzCWR9
Output for 5.4.36
8kSRzVcrJFA1pAn3x6Bb
Output for 5.4.35
DOT9DyJi8nrtvfdvw2l0
Output for 5.4.34
M2I4iyT1m2iLT5P2zkGZ
Output for 5.4.32
rkFvGih3enlgOSCe4IIL
Output for 5.4.31
DWPZ4sGSO5xZNVrdR2CC
Output for 5.4.30
E1YsrAck924A3K9rotwJ
Output for 5.4.29
5oRB6hkAIk9WW3Le30CF
Output for 5.4.28
o8wPJrgnkJwwAyk3IuDg
Output for 5.4.27
dWVfuQHsJi9pZzcQPcZ6
Output for 5.4.26
tkSE1pSviTevpcvOgwy6
Output for 5.4.25
EAUC5OXnLilI4OL3NFmF
Output for 5.4.24
5gFLBzCXAMBm6F82CLEe
Output for 5.4.23
SQHQN4QP0gbRfseMIbUp
Output for 5.4.22
ph2L4cK7WlkYLagF9cEP
Output for 5.4.21
USJ93qyI50I1TfIUkbnZ
Output for 5.4.20
IWXSBZMr8XZm8P3vJzcd
Output for 5.4.19
23Iht51eaBBhnPwl5dSj
Output for 5.4.18
vwMeixmc1hh1I4jaUiyu
Output for 5.4.17
Yr0gUnaGa8TUe5cpvzaY
Output for 5.4.16
1qztT4wsafJu4PgPrzy7
Output for 5.4.15
74v9CYeYwvuRAb44KY3P
Output for 5.4.14
wHINou9XXIdVIJc2XWCE
Output for 5.4.13
A1PAYociDQPNrjsuVgw2
Output for 5.4.12
TstN5Un6cazYA7D8Swra
Output for 5.4.11
yIGp72oegIDW7EgyZeKc
Output for 5.4.10
YZn4zDlmWJICYBO43MBW
Output for 5.4.9
nW7gRNv8gHn68fyl7Y0f
Output for 5.4.8
qKOfp4i3pvRhmpcj7kAr
Output for 5.4.7
UiokT82DhIUBdyj3dw8a
Output for 5.4.6
YBHgHMHYPurHjegZIyDU
Output for 5.4.5
KcUmYz50IKN3v1FeTrIZ
Output for 5.4.4
tWGvO5R4mMVNVMyqo9gL
Output for 5.4.3
Xw8Rvug7moHKQbHhrbK1
Output for 5.4.2
Fmo5Vfb3kxSZNsCWX9h5
Output for 5.4.1
TZiXoZFftH7VeoCRLxTe
Output for 5.4.0
71KLasmdFkNW5hoqt8bj
Output for 5.3.29
skxsWQt38TbgDQDchte3
Output for 5.3.28
u46nyZn6HpXOrGjcRXdD
Output for 5.3.27
d62GtTzXVBOhaQuKuwcg
Output for 5.3.26
0aAYNBqqyjLuuRX3RSSz
Output for 5.3.25
ZpQyS9yZQKRd1EqnTins
Output for 5.3.24
H0IGjToiA1UxWNo0RvZB
Output for 5.3.23
udaZfOtDO41V9TkTZ1ue
Output for 5.3.22
h8HhR3wUNmDqzIaydsC9
Output for 5.3.21
ZBaTqxTKIveoybx6jDUr
Output for 5.3.20
ps9UaTAOBNNoWWcWjamU
Output for 5.3.19
CSvPBBmlh01K3WbHVzC0
Output for 5.3.18
Cviduj9DOzXujWAD83wa
Output for 5.3.17
SV7OPCodroVuQIf19HW1
Output for 5.3.16
pOpoqB7DwTtVjLnVEwG9
Output for 5.3.15
tl4zspKpDZkEYGO4kSwh
Output for 5.3.14
NjIxAOovNGvORIVfxgWw
Output for 5.3.13
Cu8z7WnBHtRaRsbgy5Sw
Output for 5.3.12
fp8zfiSCOHlhPQRIewq4
Output for 5.3.11
ZH4hpqb4beAQmKGvxNpe
Output for 5.3.10
xbLcuNYLeFaIQw1sRlwy
Output for 5.3.9
5MYECKDRFvHobFcdpJ9s
Output for 5.3.8
cdKdGFlkJfz0rKW4O1Ig
Output for 5.3.7
i6IKrE9UzOPxeHa2vINL
Output for 5.3.6
ZyefBQ2VOoWRpZGclfxi
Output for 5.3.5
Hte2q39Yz0j0fsqd4yG6
Output for 5.3.4
bNyvwHJ5RyDTFUx9UPB0
Output for 5.3.3
UOZ9J8auRIrlTaMN2Bs2
Output for 5.3.2
z3grocO9KOXbgwUGS703
Output for 5.3.1
oEpBfat8TfPrzsl8dV6c
Output for 5.3.0
OiCdBJy4VjhopV5DhgSV
Output for 5.2.17
0L25Y0FdI9XjZwBv608o
Output for 5.2.16
4coQylpFUJGKoOo6ikgg
Output for 5.2.15
qAwPdMcANgopqpjTu7YU
Output for 5.2.14
QPvrPNvglnLKThXJwTI1
Output for 5.2.13
x05ty9rPYiYzXeXMPEbT
Output for 5.2.12
5vf3M2Z6De26acwr3DMh
Output for 5.2.11
WqlJxH8jwzcnXZNmtzJ4
Output for 5.2.10
Z186nH5XWvbIEbyTfrBg
Output for 5.2.9
LGCPyPBq4etoA32iiNu4
Output for 5.2.8
MmaNZQ30isVyeV2t5nD5
Output for 5.2.7
x3BKMBTN2BtQ1p0JAWmJ
Output for 5.2.6
z0jOeSC3T9JfmDsQQ3cq
Output for 5.2.5
MuNJ6a845YCdC3PattOD
Output for 5.2.4
aN8BrkrWoBVETceKaNpR
Output for 5.2.3
8ehOCDoN5e7IxsKXATOZ
Output for 5.2.2
nJAvmIO7fZ2uGxdZsYhW
Output for 5.2.1
WYDe3oc1A7y7TzA8GPeR
Output for 5.2.0
NuOYA8hxqnxbYaaaRiH2
Output for 5.1.6
X0FpkWewAJ11ytGWd4FE
Output for 5.1.5
8QYyDIAAdYQeSDat6USG
Output for 5.1.4
tWkpf1HHhegcTuX1s6g0
Output for 5.1.3
Ks9SSuzGC3tyYXspkh1y
Output for 5.1.2
J9p4zhBzmvnIskr82xSE
Output for 5.1.1
4iRH96MTYglCc0Ov9G46
Output for 5.1.0
H1pit9sFIWJwIVsdEllg
Output for 5.0.5
MVSdyMcL8HUZJeDLfLKr
Output for 5.0.4
gg8xki2hju9XoBfwgjA2
Output for 5.0.3
9BlKSp6mcYOmgFpkAP7V
Output for 5.0.2
10imZ7RUIqLb1TZLgAgu
Output for 5.0.1
5rO3RsMKGZGRpC40yVFT
Output for 5.0.0
x8SQVueG93BDadMTQ74D
Output for 4.4.9
Zi1z9GqAkZh6REnce3Jg
Output for 4.4.8
IqvsQhrdMXvFI4ZOcm0C
Output for 4.4.7
ZtkTrDePEnUFCpn414Ld
Output for 4.4.6
LoJUtGihlE1dynrBwa1z
Output for 4.4.5
XiiDobnrNWeaxECmDqhV
Output for 4.4.4
9Y6MdpGDwq9xu8wOLgw3
Output for 4.4.3
Fi7Xzieuwzbnt6vwAp2z
Output for 4.4.2
6xGY1s7LBGAbhcu1SMbh
Output for 4.4.1
oMBDr3thJu2HRW4XSgkj
Output for 4.4.0
QYrLYjQhlCsyHXzgVGCh
Output for 4.3.11
dR0ofjXTlg8NVQd17nMd
Output for 4.3.10
hGWrnfDwjFsonpIURSJH
Output for 4.3.9
BhirfME4C6c3iGzxMqjO
Output for 4.3.8
3YMoR7cSJcCuoid32vsV
Output for 4.3.7
TcCB3JDocO4VpmC2zcHp
Output for 4.3.6
H3Tkb4YXAZ5kI8dJxVfJ
Output for 4.3.5
1KwoFwhE1Doz32ivVPvQ
Output for 4.3.4
u5w9AvdCnr3etgqIyBYT
Output for 4.3.3
isxfhUTQOJPJf6QZ8Whb
Output for 4.3.2
tlHMSiRBqxNZQyRs0iOv
Output for 4.3.1
A9kyomSmVs2C80CaNXEI
Output for 4.3.0
nkOSeCzBeEWXgM5VAdzK