3v4l.org

run code in 300+ PHP versions simultaneously
<?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.4.1
s68fd798
Output for 7.3.12, 7.4.0
f2b92829
Output for 7.1.17, 7.3.13
a4179069
Output for 7.3.11
x022f276
Output for 7.3.10
b3937f4c
Output for 7.3.9
n78a8713
Output for 7.3.8
h50309ac
Output for 7.3.7
b7d22ac4
Output for 7.3.6
z1a6374e
Output for 7.3.5
m4b39947
Output for 7.3.4
y47314e4
Output for 7.1.13, 7.3.3
w31888c7
Output for 7.1.3, 7.2.3, 7.2.12, 7.3.2
y68e536b
Output for 7.3.1
u72226b6
Output for 7.1.12, 7.1.24, 7.3.0
v80a12a0
Output for 7.2.26
t4098074
Output for 7.1.21, 7.2.25
z0056486
Output for 7.2.24
j1de3c8f
Output for 7.2.23
f22b0af1
Output for 7.2.22
o3ebc699
Output for 7.2.21
g82c9ffc
Output for 7.2.20
b2c07a70
Output for 7.2.19
j4decdac
Output for 7.2.18
z1369cd6
Output for 7.2.17
p315f3ee
Output for 7.1.27, 7.2.16
y99ec8f0
Output for 7.2.10, 7.2.15
y872ab14
Output for 7.2.9, 7.2.14
m3701d8e
Output for 7.2.13
l172c6dd
Output for 7.1.25, 7.2.11
o82e0ae8
Output for 7.2.8
d6126369
Output for 7.2.7
v635e9b2
Output for 7.1.8, 7.1.15, 7.2.6
n5e218d2
Output for 7.2.5
t23471d8
Output for 7.2.4
u57b3a6f
Output for 7.2.2
z9bab46e
Output for 7.1.29, 7.2.1
d48608c3
Output for 7.2.0
c12fa4d9
Output for 7.1.33
w11b8611
Output for 7.1.32
c253cd01
Output for 7.1.31
f650c190
Output for 7.1.30
p479199a
Output for 7.1.28
s7d2e685
Output for 7.1.26
s77df4e7
Output for 7.1.23
m43d62b3
Output for 7.1.22
h4a6338f
Output for 7.1.20
c4e3d7bb
Output for 7.1.19
k184af6c
Output for 7.1.18
f93d2dae
Output for 7.1.16
e66a522d
Output for 7.1.14
o7f59404
Output for 7.1.11
z14abb07
Output for 7.1.10
h8bc4268
Output for 7.1.9
n1e884c2
Output for 7.1.7
l0ab1fa2
Output for 7.1.6
r7ee4ad8
Output for 7.1.5
t6c7d82f
Output for 7.1.4
z2362ce5
Output for 7.1.2
x7155d6b
Output for 7.1.1
y07b5cae
Output for 7.1.0
l9eaa9c3
Output for 5.4.41, 7.0.33
d1e02968
Output for 5.5.16, 5.5.25, 7.0.26, 7.0.32
x37ab51e
Output for 5.6.33, 7.0.22, 7.0.31
f09923cf
Output for 7.0.17, 7.0.27, 7.0.30
y4b0f94f
Output for 7.0.29
e2490cd5
Output for 5.6.10, 7.0.28
g957e3e4
Output for 5.5.8, 7.0.25
a19dc567
Output for 5.4.30, 7.0.24
e13d89a4
Output for 7.0.23
y0f2f25a
Output for 7.0.2, 7.0.21
v050bb79
Output for 7.0.20
n2b7b0bb
Output for 7.0.19
v777cf1b
Output for 5.5.35, 5.6.14, 7.0.18
n79628d8
Output for 7.0.16
d3c32b16
Output for 7.0.15
p96fbf1a
Output for 5.6.24, 7.0.14
v1b5e4ea
Output for 5.4.6, 7.0.13
x4af7f05
Output for 5.5.29, 7.0.12
v4120a96
Output for 5.4.3, 5.4.39, 7.0.6, 7.0.11
u297de9d
Output for 7.0.10
e9bd8150
Output for 5.4.17, 7.0.9
j2139aba
Output for 5.4.40, 7.0.8
d999424f
Output for 5.4.37, 7.0.7
w0433b45
Output for 7.0.5
a14f03fa
Output for 5.5.38, 7.0.4
w3911765
Output for 5.6.17, 7.0.3
s24e8749
Output for 5.4.38, 5.6.20, 5.6.29, 7.0.1
n31d0ac6
Output for 7.0.0
c6c66465
Output for 5.6.40
p87c941d
Output for 5.4.28, 5.5.24, 5.6.39
k853c921
Output for 5.6.38
i5036ee8
Output for 5.6.37
p68d9684
Output for 5.6.36
p97c9e10
Output for 5.6.35
w564807b
Output for 5.4.45, 5.5.5, 5.5.18, 5.6.2, 5.6.34
b88f9956
Output for 5.6.32
y9037cfe
Output for 5.5.32, 5.5.34, 5.6.31
j3f4e0c8
Output for 5.4.36, 5.6.30
o988d3b7
Output for 5.5.12, 5.6.0, 5.6.28
i91def3e
Output for 5.6.27
a9a00358
Output for 5.6.26
z94da9e2
Output for 5.5.4, 5.5.23, 5.6.6, 5.6.12, 5.6.19, 5.6.25
i30d161c
Output for 5.6.23
s67144f0
Output for 5.6.22
v2fcd354
Output for 5.6.21
r3d4a3f5
Output for 5.6.18
f6bab025
Output for 5.4.1, 5.5.11, 5.5.37, 5.6.16
o98054ce
Output for 5.4.14, 5.6.15
e63ab408
Output for 5.6.13
v5b4b384
Output for 5.4.8, 5.6.11
b0ab1c76
Output for 5.5.30, 5.6.9
w109a40b
Output for 5.6.4, 5.6.8
m4c1ae85
Output for 5.6.7
p7b70edc
Output for 5.5.9, 5.6.5
d57d7837
Output for 5.5.6, 5.6.3
v88246d4
Output for 5.4.4, 5.6.1
g0282773
Output for 5.5.36
d17d8378
Output for 5.5.33
d8b676a4
Output for 5.5.31
w38b4664
Output for 5.5.28
f0ef3473
Output for 5.5.27
o8b7e337
Output for 5.5.26
a84145ba
Output for 5.5.22
t9fd002b
Output for 5.4.19, 5.5.21
f978a423
Output for 5.4.11, 5.5.20
t2871f17
Output for 5.5.19
z8c3f6ad
Output for 5.5.17
e81762ba
Output for 5.5.15
i6248714
Output for 5.5.14
r4e1eb41
Output for 5.4.24, 5.5.13
f126561a
Output for 5.5.10
n61e8811
Output for 5.5.7
t3fc0419
Output for 5.4.43, 5.5.3
s3b3473e
Output for 5.5.2
f5b9c079
Output for 5.5.1
i9864ba8
Output for 5.5.0
s7f0dac7
Output for 5.4.44
b5c04c86
Output for 5.4.42
u573a5df
Output for 5.4.32, 5.4.35
k7b3477e
Output for 5.4.34
l6a5f0e4
Output for 5.4.33
h297d551
Output for 5.4.26, 5.4.31
t9628e4a
Output for 5.4.29
b8513dcd
Output for 5.4.25, 5.4.27
j6603d60
Output for 5.4.23
j190410f
Output for 5.4.22
n8682023
Output for 5.4.21
g3ea12f3
Output for 5.4.20
y27fe7c9
Output for 5.4.18
g10d6cff
Output for 5.4.12, 5.4.16
k2fb3dc8
Output for 5.4.15
j4d87282
Output for 5.4.13
r9e4c82b
Output for 5.4.10
q9543daf
Output for 5.4.9
i6c06fde
Output for 5.4.7
u18451d0
Output for 5.4.5
o7f1ebfe
Output for 5.4.2
k3715edc
Output for 5.4.0
e866668d
Output for 5.3.2 - 5.3.5, 5.3.7 - 5.3.10, 5.3.12 - 5.3.14, 5.3.16 - 5.3.18, 5.3.21 - 5.3.22, 5.3.24 - 5.3.25, 5.3.27 - 5.3.29
n238d429
Output for 5.3.6, 5.3.11, 5.3.15, 5.3.19 - 5.3.20, 5.3.23, 5.3.26
a830e323
Output for 5.3.0 - 5.3.1
u7e36e2f
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.0.5, 5.1.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.3.11, 4.4.0 - 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

preferences:
250.08 ms | 401 KiB | 325 Q