3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $length = 12; $chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890'; { $chars_length = (strlen($chars) - 1); $string = $chars{rand(0, $chars_length)}; for ($i = 1; $i < $length; $i = strlen($string)) { $r = $chars{rand(0, $chars_length)}; if ($r != $string{$i - 1}) { $string .= $r; } } echo $string; }
Output for 7.2.0
XF9GzVvZ9uIv
Output for 7.1.7
hVM1JmqdutAt
Output for 7.1.6
iPwOHdZNdLmn
Output for 7.1.5
6n4TSmwGTyZI
Output for 7.1.0
EGiBysk7NERg
Output for 7.0.20
xkVqPV0YGDW8
Output for 7.0.14
vQEbV3WKFGM6
Output for 7.0.6
wmPGqiAPFHKG
Output for 7.0.5
EFsSmFU9cfTP
Output for 7.0.4
pVUD8sPyFocg
Output for 7.0.3
Hutal4lX8fWb
Output for 7.0.2
3POiwnPru5uo
Output for 7.0.1
QuoVjazicHpN
Output for 7.0.0
lfatW8wpYLfG
Output for 5.6.28
3baCYbnOZdoP
Output for 5.6.21
FPjEJ2YPwLsI
Output for 5.6.20
rM7RNF0ew2Vb
Output for 5.6.19
ub9oh2Up2pNA
Output for 5.6.18
MCxbD4Ksibr3
Output for 5.6.17
NJyGHQA7VSKH
Output for 5.6.16
KqUKEixz8HRW
Output for 5.6.15
2hjqiKB5DzmB
Output for 5.6.14
FDW4KGKPU3TZ
Output for 5.6.13
0fnKBQoS9lfn
Output for 5.6.12
L7PxYPpKOFxO
Output for 5.6.11
A4qPCmqRps6G
Output for 5.6.10
tzMXrFqRPRqu
Output for 5.6.9
duGbwJP4PtqB
Output for 5.6.8
U9pzwF8SPZLm
Output for 5.6.7
1NIEoSLWUcIM
Output for 5.5.35
cDEuFmyoD4oY
Output for 5.5.34
dkE2V95coS9P
Output for 5.5.33
Mf2kMFnKYrTg
Output for 5.5.32
HYMaTMmpQBh0
Output for 5.5.31
HztPBXbuNfxq
Output for 5.5.30
G4aZuf3zjAd2
Output for 5.5.29
HwTIRDoxZ0KE
Output for 5.5.28
UVrXzkJBPbwq
Output for 5.5.27
hfiNry9K31jb
Output for 5.5.26
3tOibW2FxTJX
Output for 5.5.25
ZYK8BZ7oM8Ho
Output for 5.5.24
Mm6ziFAJfIbg
Output for 5.4.45
rnENFsxw3XJY
Output for 5.4.44
MGxfUDbiQmbC
Output for 5.4.43
qcen97RiMpyY
Output for 5.4.42
tW6qJm8UcoIO
Output for 5.4.41
Rn1zoAYjMBO1
Output for 5.4.40
fFqX8epUjTRh
Output for 5.4.39
hJMPKB9IXSOZ
Output for 5.4.38
8DYGphU9XjDK
Output for 5.4.37
Mb1FGyZKjRfQ
Output for 5.4.36
Gzc8s7aJhdVs
Output for 5.4.35
an1SaPXh75K2
Output for 5.4.34
V2zvcgI6vJY3
Output for 5.4.32
0UkytZ85CMgI
Output for 5.4.31
IqHZU4uLTC1n
Output for 5.4.30
GNPzmS1k5Yz4
Output for 5.4.29
91On7umnyvlB
Output for 5.4.28
HyFAif8l5fKd
Output for 5.4.27
dCZiXd0dGMZj
Output for 5.4.26
xRXTWQLad4Lz
Output for 5.4.25
PkB5mx9kBPt9
Output for 5.4.24
dP0oqKTFRzcG
Output for 5.4.23
ispFO2OSKvby
Output for 5.4.22
HYi2LJjasWi5
Output for 5.4.21
H265q6HerITk
Output for 5.4.20
Sw6Y35J630O8
Output for 5.4.19
xUpXC9DL7iI4
Output for 5.4.18
nEGbeIP2n0mP
Output for 5.4.17
7tJKRZGRoXm3
Output for 5.4.16
4uhPINFICbJn
Output for 5.4.15
D7FczABxF17M
Output for 5.4.14
zKEpGHU1qjza
Output for 5.4.13
bSU6J6yrBQOq
Output for 5.4.12
9acS4jpx9xjS
Output for 5.4.11
LA5d0mJ7qZ1C
Output for 5.4.10
pwAIwVkcpk4f
Output for 5.4.9
87vstsKIW437
Output for 5.4.8
JBomqGKW38WG
Output for 5.4.7
wc2CpeU0rPcV
Output for 5.4.6
fnW8wdGBfCH2
Output for 5.4.5
IZDp4I6KC67L
Output for 5.4.4
avtCe5NSPytn
Output for 5.4.3
MGlZDiAqK9Va
Output for 5.4.2
mkHGX9MsdUnF
Output for 5.4.1
FytbSyBveWY0
Output for 5.4.0
q4lBOXETwM9u
Output for 5.3.29
Vy0XL4grIUmW
Output for 5.3.28
MQOstqw7Vj17
Output for 5.3.27
VjKBSPhnVdCQ
Output for 5.3.26
UG4QDhsRha7x
Output for 5.3.25
4WjKWONTPU7n
Output for 5.3.24
rcfXTOJ5mFaQ
Output for 5.3.23
eH4u2ClTpPle
Output for 5.3.22
03I3BWjljUQ2
Output for 5.3.21
8cvECLpuZhCx
Output for 5.3.20
HpRZdB0CzfPZ
Output for 5.3.19
wOBrdYsgX2BT
Output for 5.3.18
Dz8ABU2tbxEa
Output for 5.3.17
C20xjPOReQKe
Output for 5.3.16
I9fej8G2Xmqz
Output for 5.3.15
QdNK2BOhaj81
Output for 5.3.14
BcDr2scsDZLn
Output for 5.3.13
RaIRDMkuwhtQ
Output for 5.3.12
nOgXpER5xvx1
Output for 5.3.11
TCVDGrZgbh4s
Output for 5.3.10
PMT7SDi61xGi
Output for 5.3.9
kR7trg7moyie
Output for 5.3.8
m9yqGdNDfDiO
Output for 5.3.7
4vF8ORaAZes3
Output for 5.3.6
RxAT5v0dtJPs
Output for 5.3.5
GuKPG0tqUnjx
Output for 5.3.4
1vbjgFcVE5zn
Output for 5.3.3
8XUFr6GK2N74
Output for 5.3.2
rLNS72vglM8t
Output for 5.3.1
ogBjZakw40qR
Output for 5.3.0
z3jMWunwOMRK
Output for 5.2.17
P08HfcnKiEQJ
Output for 5.2.16
uUakA1zUMlIy
Output for 5.2.15
5cU2fethy6Ks
Output for 5.2.14
f8SUBVDUJdw4
Output for 5.2.13
bpCiCrSjogeH
Output for 5.2.12
nQaN3jleMSFi
Output for 5.2.11
oCYlORVdL70A
Output for 5.2.10
NsXhkB23KUs8
Output for 5.2.9
cyEuXmxGgRzb
Output for 5.2.8
jNejx6dATxpN
Output for 5.2.7
gYFK32hP90HR
Output for 5.2.6
DpoFZTwnblkD
Output for 5.2.5
oGyOcXmPGF8i
Output for 5.2.4
UtAwXkzoXit8
Output for 5.2.3
ZDrjTUg4AvRA
Output for 5.2.2
lXsbtufA0w8m
Output for 5.2.1
Vmp8NSu9w7a4
Output for 5.2.0
Y3QbnbU2ge01
Output for 5.1.6
0AF1nJcmWR4t
Output for 5.1.5
bOG8petr9iDx
Output for 5.1.4
SgY3JHa1eVTO
Output for 5.1.3
DQayLOxIb9XQ
Output for 5.1.2
NhNaMxwKQtKH
Output for 5.1.1
720GXEXW86PV
Output for 5.1.0
cUtpWbo2yUxa
Output for 5.0.5
F8yxWd95F36U
Output for 5.0.4
9FvH0hsxk65a
Output for 5.0.3
M7ctFiBkO3Xc
Output for 5.0.2
nqU58f9p3Uxu
Output for 5.0.1
H8WIyaJLhzYg
Output for 5.0.0
QOQloQBvhE4N
Output for 4.4.9
xUVGK7S712gO
Output for 4.4.8
56r5mDvtAbPu
Output for 4.4.7
a0SVcurLDruA
Output for 4.4.6
kjiFD8wzMeiF
Output for 4.4.5
9dXj2MBUDXSu
Output for 4.4.4
NZlOew3HIBNA
Output for 4.4.3
IsfqKEwnQjIe
Output for 4.4.2
IwZ0Upoj0ZfX
Output for 4.4.1
FriMyceyYpOg
Output for 4.4.0
9snHgrLwjdtM
Output for 4.3.11
rKFq3VSpuiCm
Output for 4.3.10
AKO4zdG0JTef
Output for 4.3.9
kGedZQEqNb47
Output for 4.3.8
ZNcu2YlrhIlG
Output for 4.3.7
GlMXF27zOjPC
Output for 4.3.6
hD47xFWtj4Wx
Output for 4.3.5
hpczBeq9xUfy
Output for 4.3.4
vc4HKE9iJ0Id
Output for 4.3.3
eCyXeqVzGJkn
Output for 4.3.2
bxW7NzEkBNTi
Output for 4.3.1
07FamEHZ0h7k
Output for 4.3.0
zvLzHSxZ37Fe