3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $generated_id = substr('abcdefghijklmnopqrstuvwxyz', mt_rand(0,25), 1) . mt_rand(0,9) . substr(hash("sha256", time() . mt_rand(100000,999999)),0,6); strtoupper($generated_id); echo $generated_id;
Output for 7.1.0
s32aadfc
Output for 7.0.14
r432f732
Output for 7.0.10
g7798c47
Output for 7.0.9
h7dcc723
Output for 7.0.8
e7739c90
Output for 7.0.7
e2d95bcd
Output for 7.0.6
s6884576
Output for 7.0.5
s536b68a
Output for 7.0.4
f5d0d732
Output for 7.0.3
b8433006
Output for 7.0.2
t2796d15
Output for 7.0.1
p7f28807
Output for 7.0.0
q675db15
Output for hhvm-3.12.0
f10868f5
Output for hhvm-3.10.0
h6b4d7b8
Output for 5.6.25
b9c8a0da
Output for 5.6.24
e8e8eca1
Output for 5.6.23
b48482d4
Output for 5.6.22
r0f9c443
Output for 5.6.21
y30a26e6
Output for 5.6.20
o6edb50e
Output for 5.6.19
b87db50b
Output for 5.6.18
t50d4b5b
Output for 5.6.17
e43d7331
Output for 5.6.16
k5e73982
Output for 5.6.15
t8e6eb8b
Output for 5.6.14
i0993e05
Output for 5.6.13
e641b196
Output for 5.6.12
u31d91b2
Output for 5.6.11
i95d2057
Output for 5.6.10
o6c7806e
Output for 5.6.9
u2c7760d
Output for 5.6.8
s23b13f3
Output for 5.6.7
p403288c
Output for 5.6.6
p204a8f5
Output for 5.6.5
y0a4668d
Output for 5.6.4
b9d8404e
Output for 5.6.3
z72138c0
Output for 5.6.2
j64d4040
Output for 5.6.1
y6ded935
Output for 5.6.0
h9a18121
Output for 5.5.38
h47b2f98
Output for 5.5.37
l1221e61
Output for 5.5.36
j4b8ba08
Output for 5.5.35
k3084841
Output for 5.5.34
u2bfb759
Output for 5.5.33
i1608440
Output for 5.5.32
x704af59
Output for 5.5.31
q29c7693
Output for 5.5.30
i28d5a24
Output for 5.5.29
b8b5eb20
Output for 5.5.28
f283b346
Output for 5.5.27
b3106e58
Output for 5.5.26
r77cd973
Output for 5.5.25
x787f9e9
Output for 5.5.24
n944cd5d
Output for 5.5.23
o5977830
Output for 5.5.22
u0842863
Output for 5.5.21
m817db18
Output for 5.5.20
m0825ef4
Output for 5.5.19
c7484a90
Output for 5.5.18
y70b8f2f
Output for 5.5.16
y20d6ef9
Output for 5.5.15
k5138fb2
Output for 5.5.14
e4124506
Output for 5.5.13
v3d44c43
Output for 5.5.12
z0fcbf06
Output for 5.5.11
a351ea68
Output for 5.5.10
x958ca00
Output for 5.5.9
a2079913
Output for 5.5.8
o9855f7d
Output for 5.5.7
i24a5a6a
Output for 5.5.6
i6d1efb9
Output for 5.5.5
z42a11cf
Output for 5.5.4
f90b63ad
Output for 5.5.3
e8e765aa
Output for 5.5.2
y70688d4
Output for 5.5.1
v414676e
Output for 5.5.0
s78c9e67
Output for 5.4.45
s4ac4759
Output for 5.4.44
k2956d2c
Output for 5.4.43
u1581fda
Output for 5.4.42
g5d18e65
Output for 5.4.41
a8530466
Output for 5.4.40
s3fb67f8
Output for 5.4.39
g3c006f1
Output for 5.4.38
u106b3fd
Output for 5.4.37
k0097437
Output for 5.4.36
t6d028b0
Output for 5.4.35
o6575815
Output for 5.4.34
b6aebd05
Output for 5.4.32
a59a8393
Output for 5.4.31
k40211d1
Output for 5.4.30
a9f0b55c
Output for 5.4.29
z4c2de80
Output for 5.4.28
i84e6c1c
Output for 5.4.27
o0b6c1e0
Output for 5.4.26
b715ff69
Output for 5.4.25
l718e8f9
Output for 5.4.24
q857ad79
Output for 5.4.23
s4063413
Output for 5.4.22
o640e26e
Output for 5.4.21
o704158d
Output for 5.4.20
d413e3a3
Output for 5.4.19
y9c37914
Output for 5.4.18
u7775017
Output for 5.4.17
s33cd565
Output for 5.4.16
y3a3d4b5
Output for 5.4.15
f82055ae
Output for 5.4.14
l629c8ca
Output for 5.4.13
y756ff6e
Output for 5.4.12
u2461ddf
Output for 5.4.11
b61eba65
Output for 5.4.10
i22aeb50
Output for 5.4.9
t931b2e9
Output for 5.4.8
k1ebe88b
Output for 5.4.7
u5067658
Output for 5.4.6
d7dae84a
Output for 5.4.5
q2a8106f
Output for 5.4.4
t7fa6210
Output for 5.4.3
b1365cef
Output for 5.4.2
s837a29f
Output for 5.4.1
d790e018
Output for 5.4.0
k42f6e76
Output for 5.3.29
w3baccd1
Output for 5.3.28
y05fd30d
Output for 5.3.27
j3b8b9d2
Output for 5.3.26
z01b19d1
Output for 5.3.25
u1192cd6
Output for 5.3.24
l14955b8
Output for 5.3.23
b90e7aa0
Output for 5.3.22
l8a63495
Output for 5.3.21
j6248995
Output for 5.3.20
k215b426
Output for 5.3.19
p49acb13
Output for 5.3.18
x38e741f
Output for 5.3.17
z3701695
Output for 5.3.16
r406ee7f
Output for 5.3.15
u1ddfc43
Output for 5.3.14
l2fc4331
Output for 5.3.13
j9c7570a
Output for 5.3.12
s5cb443c
Output for 5.3.11
w394f42c
Output for 5.3.10
u505bfe0
Output for 5.3.9
k204d5bb
Output for 5.3.8
a177b492
Output for 5.3.7
p1855d7b
Output for 5.3.6
d70e634d
Output for 5.3.5
d464d84d
Output for 5.3.4
o0251eb8
Output for 5.3.3
z40b566c
Output for 5.3.2
q9f5993e
Output for 5.3.1
z0950bfa
Output for 5.3.0
y8290b4b
Output for 5.2.17
d39113c3
Output for 5.2.16
i7cf8af8
Output for 5.2.15
q6deb4df
Output for 5.2.14
x776cab9
Output for 5.2.13
b23fdf8f
Output for 5.2.12
c5ea77f5
Output for 5.2.11
q8e6b42a
Output for 5.2.10
e7040fbc
Output for 5.2.9
k7adcc5f
Output for 5.2.8
z4236d5e
Output for 5.2.7
s4d471b5
Output for 5.2.6
p9866154
Output for 5.2.5
k652615f
Output for 5.2.4
a430df98
Output for 5.2.3
v7f0fd8b
Output for 5.2.2
u1d58987
Output for 5.2.1
r26436a2
Output for 5.2.0
c7d50e12
Output for 5.1.6
c2d8b729
Output for 5.1.5
z3bda36c
Output for 5.1.4
v79ee055
Output for 5.1.3
u4d7a134
Output for 5.1.2
i1c53a74
Output for 5.0.0 - 5.1.1
Fatal error: Call to undefined function hash() in /in/Wvvt4 on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: hash() in /in/Wvvt4 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: hash() in /in/Wvvt4 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: hash() in /in/Wvvt4 on line 3