3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function CreateA6DigitUserID() { $az = array_merge(range('A','Z'), range('a','z')); $one = $az[mt_rand(0,count($az)-1)]; $two = $az[mt_rand(0,count($az)-1)]; $digits = str_pad(mt_rand(0,9999), 4, "0", STR_PAD_LEFT); return $one.$two.$digits; } echo CreateA6DigitUserID();
Output for 7.1.0
ag2719
Output for 7.0.14
Uy2189
Output for 7.0.6
bM8144
Output for 7.0.5
Lp6320
Output for 7.0.4
rj9127
Output for 7.0.3
Ln8625
Output for 7.0.2
rn4753
Output for 7.0.1
QV3847
Output for 7.0.0
rd2802
Output for hhvm-3.12.0
VX5019
Output for hhvm-3.10.0
yn7330
Output for 5.6.28
NJ3630
Output for 5.6.21
DR0838
Output for 5.6.20
XA6225
Output for 5.6.19
hc9460
Output for 5.6.18
zI9815
Output for 5.6.17
Hg2949
Output for 5.6.16
uW1410
Output for 5.6.15
IB5755
Output for 5.6.14
Gl8590
Output for 5.6.13
ol8464
Output for 5.6.12
dY1358
Output for 5.6.11
eP6600
Output for 5.6.10
VJ9639
Output for 5.6.9
mQ3924
Output for 5.6.8
ol8629
Output for 5.6.7
Os1800
Output for 5.6.6
sE9154
Output for 5.6.5
Mg8121
Output for 5.6.4
su9056
Output for 5.6.3
Sv8288
Output for 5.6.2
fm2070
Output for 5.6.1
gp8266
Output for 5.6.0
Kc5822
Output for 5.5.35
hx7825
Output for 5.5.34
Zf5758
Output for 5.5.33
ID3920
Output for 5.5.32
Sm5364
Output for 5.5.31
dg0080
Output for 5.5.30
bp7890
Output for 5.5.29
Fx1574
Output for 5.5.28
od8024
Output for 5.5.27
qm5692
Output for 5.5.26
ki2126
Output for 5.5.25
FK1928
Output for 5.5.24
zc3547
Output for 5.5.23
tq7692
Output for 5.5.22
Hd4641
Output for 5.5.21
ne3262
Output for 5.5.20
Fq6897
Output for 5.5.19
Gt1341
Output for 5.5.18
yT5413
Output for 5.5.16
uz5476
Output for 5.5.15
bI2396
Output for 5.5.14
fF6865
Output for 5.5.13
PK5933
Output for 5.5.12
su5489
Output for 5.5.11
Bn6134
Output for 5.5.10
Fq6097
Output for 5.5.9
wH4815
Output for 5.5.8
gw8153
Output for 5.5.7
DW3836
Output for 5.5.6
xg7457
Output for 5.5.5
we9865
Output for 5.5.4
uJ9722
Output for 5.5.3
Kw6287
Output for 5.5.2
Tb0031
Output for 5.5.1
Ow2026
Output for 5.5.0
Gi0315
Output for 5.4.45
hu7446
Output for 5.4.44
HY4965
Output for 5.4.43
Jq8001
Output for 5.4.42
Wn7072
Output for 5.4.41
TW7843
Output for 5.4.40
Zr4771
Output for 5.4.39
FU7791
Output for 5.4.38
jN7849
Output for 5.4.37
Hx4833
Output for 5.4.36
Hc1618
Output for 5.4.35
AH1501
Output for 5.4.34
Yw5452
Output for 5.4.32
ry8463
Output for 5.4.31
pO1566
Output for 5.4.30
AW0569
Output for 5.4.29
gS5798
Output for 5.4.28
Tv4334
Output for 5.4.27
km9272
Output for 5.4.26
Ur8261
Output for 5.4.25
yB6441
Output for 5.4.24
uv7030
Output for 5.4.23
Tl6664
Output for 5.4.22
pl8417
Output for 5.4.21
of4165
Output for 5.4.20
oJ1599
Output for 5.4.19
RV9643
Output for 5.4.18
AG0729
Output for 5.4.17
wq4621
Output for 5.4.16
FN8393
Output for 5.4.15
cE4149
Output for 5.4.14
Lk2367
Output for 5.4.13
uD5123
Output for 5.4.12
Cf5394
Output for 5.4.11
vS4561
Output for 5.4.10
OU4959
Output for 5.4.9
LQ2198
Output for 5.4.8
Ng4783
Output for 5.4.7
LS0087
Output for 5.4.6
mL7912
Output for 5.4.5
vb9062
Output for 5.4.4
gf7812
Output for 5.4.3
PH8437
Output for 5.4.2
Vr1712
Output for 5.4.1
Ah8296
Output for 5.4.0
pD5474
Output for 5.3.29
Ba5895
Output for 5.3.28
yh1868
Output for 5.3.27
GQ5176
Output for 5.3.26
hS2833
Output for 5.3.25
ec6760
Output for 5.3.24
MF3834
Output for 5.3.23
Ev8897
Output for 5.3.22
Sq4550
Output for 5.3.21
ho6220
Output for 5.3.20
iT4296
Output for 5.3.19
Bk8988
Output for 5.3.18
AW3950
Output for 5.3.17
Ce9674
Output for 5.3.16
Qx0113
Output for 5.3.15
PN2040
Output for 5.3.14
hb4054
Output for 5.3.13
fL7495
Output for 5.3.12
eu7546
Output for 5.3.11
Dx3167
Output for 5.3.10
ui0762
Output for 5.3.9
YW6640
Output for 5.3.8
kF6113
Output for 5.3.7
xF1637
Output for 5.3.6
hx3783
Output for 5.3.5
PM8753
Output for 5.3.4
CN5743
Output for 5.3.3
mX1962
Output for 5.3.2
rg9377
Output for 5.3.1
dT6384
Output for 5.3.0
xN8624
Output for 5.2.17
zv7474
Output for 5.2.16
Xm8194
Output for 5.2.15
CS3288
Output for 5.2.14
Co1814
Output for 5.2.13
ev1482
Output for 5.2.12
YB1765
Output for 5.2.11
GR2719
Output for 5.2.10
kQ1586
Output for 5.2.9
lI0951
Output for 5.2.8
Xc4777
Output for 5.2.7
zU2993
Output for 5.2.6
RE8999
Output for 5.2.5
rq4613
Output for 5.2.4
CG1587
Output for 5.2.3
ED9873
Output for 5.2.2
QL9347
Output for 5.2.1
rW8147
Output for 5.2.0
uZ5634
Output for 5.1.6
vS9619
Output for 5.1.5
sZ0066
Output for 5.1.4
nj6387
Output for 5.1.3
vF7102
Output for 5.1.2
Qu8530
Output for 5.1.1
xB1837
Output for 5.1.0
DN0707
Output for 5.0.5
Cm6306
Output for 5.0.4
XU1260
Output for 5.0.3
Ok2083
Output for 5.0.2
JY6797
Output for 5.0.1
Ad5364
Output for 5.0.0
np2083
Output for 4.4.9
Ew8283
Output for 4.4.8
al8710
Output for 4.4.7
pA4006
Output for 4.4.6
WH2343
Output for 4.4.5
pR3561
Output for 4.4.4
rZ7344
Output for 4.4.3
Hn1270
Output for 4.4.2
nC0568
Output for 4.4.1
uc5647
Output for 4.4.0
mJ0694
Output for 4.3.11
wN6035
Output for 4.3.10
fk2543
Output for 4.3.9
ht5367
Output for 4.3.8
dN3475
Output for 4.3.7
eI3737
Output for 4.3.6
vm7166
Output for 4.3.5
Oe5532
Output for 4.3.4
ip1558
Output for 4.3.3
Cr7275
Output for 4.3.2
sq3935
Output for 4.3.1
wK7658
Output for 4.3.0
tG5393