3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function uuid() { $x4 = function() { $n = ''; while (strlen($n) < 4) { $n = $n.mt_rand(); } return substr($n, -4); }; return sprintf( '%s-%04x-%04x-%04x-%04x%04x%04x', time(), $x4(), $x4(), $x4(), $x4(), $x4(), $x4(), $x4() ); } echo uuid();
Output for 7.1.0
1410542836-24c0-144e-0673-200726b5190b
Output for 7.0.14
1410542836-00de-1da1-23d6-10a609fb0e9d
Output for 7.0.10
1410542836-0691-1eb0-19cc-0dc706971dd1
Output for 7.0.9
1410542836-18e0-0aa3-0043-21da0af80eb6
Output for 7.0.8
1410542836-0ea3-162a-0194-063425b81884
Output for 7.0.7
1410542836-0385-1e46-194f-0a4215ab0885
Output for 7.0.6
1410542836-08e7-154a-148c-0ee50d370ae0
Output for 7.0.5
1410542836-0f95-1621-1cb5-0f9815aa10fb
Output for 7.0.4
1410542836-0186-1e9b-216f-08330e2c07cc
Output for 7.0.3
1410542836-2406-19dc-161f-225909051d63
Output for 7.0.2
1410542836-19c9-0bab-0dcd-19611c6c1695
Output for 7.0.1
1410542836-18ac-0b06-26fc-22f70add135a
Output for 7.0.0
1410542836-1851-15d4-21f1-1aeb250b0649
Output for hhvm-3.12.0
1410542836-1dc1-12cf-12e8-216c20f90a67
Output for hhvm-3.10.0
1410542836-2100-10b7-1be4-135319d601aa
Output for 5.6.28
1410542836-0fa5-008c-14d8-1f7c02f80ec9
Output for 5.6.25
1410542836-1f48-0c9d-1f73-106913e31c99
Output for 5.6.24
1410542836-1be3-0674-0038-02ac0a6114a1
Output for 5.6.23
1410542836-06e5-063a-22e4-189a1fe80efb
Output for 5.6.22
1410542836-0042-1720-146f-2404009d1250
Output for 5.6.21
1410542836-1a2c-10c0-0ebb-14ec0f0305ab
Output for 5.6.20
1410542836-08b6-0323-1a5f-00781c8b0357
Output for 5.6.19
1410542836-0ca6-1416-150e-257708fd0d72
Output for 5.6.18
1410542836-0bd2-086c-0720-218313b51932
Output for 5.6.17
1410542836-1135-0120-2452-01f518b221a9
Output for 5.6.16
1410542836-15e4-0794-10c8-0fd01f450b8e
Output for 5.6.15
1410542836-1b9e-0e7e-0cdd-1fb3233e09f4
Output for 5.6.14
1410542836-1fd3-16fa-2506-0dd20ace21e9
Output for 5.6.13
1410542836-0a80-0a23-01ec-1d780f622090
Output for 5.6.12
1410542836-24b7-1570-0b0d-0c8d14fb1c90
Output for 5.6.11
1410542836-014b-1ac6-13e6-2206033c02ef
Output for 5.6.10
1410542836-0e78-10e5-2234-1398249d1f56
Output for 5.6.9
1410542836-23e7-0587-01b5-1abb073b24b5
Output for 5.6.8
1410542836-13c6-11a8-08a1-1fe616720aee
Output for 5.6.7
1410542836-1745-059e-099d-0c3b030c01fc
Output for 5.6.6
1410542836-077c-1cba-0065-1bed23941ca8
Output for 5.6.5
1410542836-16bc-1a49-084b-028a161d1576
Output for 5.6.4
1410542836-0dc9-1d8c-02d9-176d102d0ce0
Output for 5.6.3
1410542836-0f9f-123e-00c4-252e188b1f6e
Output for 5.6.2
1410542836-2510-0a2d-0c47-231912b70732
Output for 5.6.1
1410542836-0faf-2233-05d3-107b039c15bc
Output for 5.6.0
1410542836-0845-19bb-0161-04f8220b17a9
Output for 5.5.38
1410542836-032b-1b33-1ccf-23900a852331
Output for 5.5.37
1410542836-16f2-1c14-2404-1c800ad8072f
Output for 5.5.36
1410542836-11b0-26f0-013d-25100a3d107f
Output for 5.5.35
1410542836-24eb-0289-10c7-1caa1cb70f95
Output for 5.5.34
1410542836-007d-26d0-09e7-1e1c183b1c43
Output for 5.5.33
1410542836-03af-02af-0ee5-081f089f1d47
Output for 5.5.32
1410542836-1873-006c-1774-0ae40ca00252
Output for 5.5.31
1410542836-21c4-0226-1c88-233315f2161f
Output for 5.5.30
1410542836-200d-24a8-22c0-05d0154e1d8b
Output for 5.5.29
1410542836-20e8-1b97-0a1a-0ac1107e1502
Output for 5.5.28
1410542836-0b5b-1cc8-066b-179f0543238b
Output for 5.5.27
1410542836-045b-0982-0379-20cc139d1c83
Output for 5.5.26
1410542836-0c83-00a5-0156-1a1a12bd1c56
Output for 5.5.25
1410542836-02b4-06f1-22e8-1926225a0ce7
Output for 5.5.24
1410542836-1b68-0ab0-1c5a-26ff26c12019
Output for 5.5.23
1410542836-0be2-05f9-2682-251b0f95208c
Output for 5.5.22
1410542836-0fe1-1dfc-11f2-1aab1bb92072
Output for 5.5.21
1410542836-13f6-1dc7-0bcd-049813051dcd
Output for 5.5.20
1410542836-26f9-1419-1b2d-11680024175e
Output for 5.5.19
1410542836-2202-0b4c-26b7-04b125e7059b
Output for 5.5.18
1410542836-0568-13fa-12ab-03a605d40908
Output for 5.5.16
1410542836-1b3c-199f-1623-09340a720990
Output for 5.5.15
1410542836-133d-1969-1244-13da0c9012ba
Output for 5.5.14
1410542836-2099-054f-1956-11ee00e80912
Output for 5.5.13
1410542836-1f85-085a-08f8-043900ec0d46
Output for 5.5.12
1410542836-03ed-14fb-01ba-131e23d2051d
Output for 5.5.11
1410542836-0967-0b5b-1fce-179009dd01c3
Output for 5.5.10
1410542836-140d-1f95-016c-10101c5626f2
Output for 5.5.9
1410542836-178f-0945-0afa-19c406cb0a24
Output for 5.5.8
1410542836-0cbb-11b9-18b3-165313bd1b36
Output for 5.5.7
1410542836-0ba0-04ed-24d8-107112c91776
Output for 5.5.6
1410542836-1a98-1058-2639-152310f40a80
Output for 5.5.5
1410542836-0c96-1fac-0e35-15e6162010d8
Output for 5.5.4
1410542836-1f28-17c5-0e4f-20fb0efd093d
Output for 5.5.3
1410542836-0c35-25f7-1a97-0872112009b6
Output for 5.5.2
1410542836-0f5a-1309-00f3-230908ae0b13
Output for 5.5.1
1410542836-1eeb-085c-0689-19af113012d5
Output for 5.5.0
1410542836-1877-053e-1583-13ef21221ad9
Output for 5.4.45
1410542836-05e9-0625-20b8-1f831fc10121
Output for 5.4.44
1410542836-024a-16d3-171a-0ad602732305
Output for 5.4.43
1410542836-1952-188c-06c9-08710ff71f01
Output for 5.4.42
1410542836-12bd-00df-065f-034a14ad075d
Output for 5.4.41
1410542836-23b0-176d-2421-1f270b0f2296
Output for 5.4.40
1410542836-1736-059c-250a-18ea21af1241
Output for 5.4.39
1410542836-15d9-1f26-1661-0fdd20321102
Output for 5.4.38
1410542836-1cbe-2269-03e4-180e03090344
Output for 5.4.37
1410542836-099f-0bcd-160a-22a50bb20d9a
Output for 5.4.36
1410542836-05bf-1c59-039d-02e7267a09b5
Output for 5.4.35
1410542836-0d69-1fc0-2438-01be18e90529
Output for 5.4.34
1410542836-19a9-2163-1d67-1a81034d0a33
Output for 5.4.32
1410542836-2559-02f2-141e-226124e70c7e
Output for 5.4.31
1410542836-1fcb-238c-0133-059e10e315b6
Output for 5.4.30
1410542836-05e3-1c9b-093a-1f61064721b1
Output for 5.4.29
1410542836-22b0-0a84-0213-027d0f7b0945
Output for 5.4.28
1410542836-0f15-2663-138b-1db714210e40
Output for 5.4.27
1410542836-0aa5-1d8b-0bcf-207e21fc0c6a
Output for 5.4.26
1410542836-2444-055e-01bd-19ce1263176f
Output for 5.4.25
1410542836-21a0-13cd-07c7-1e3e14631b83
Output for 5.4.24
1410542836-062c-1cd9-1acb-0c880cd514af
Output for 5.4.23
1410542836-0b26-018a-1eec-0ce418620ac5
Output for 5.4.22
1410542836-0abf-0f69-21d9-251726ca1588
Output for 5.4.21
1410542836-251f-0e31-1f06-027c24e70ada
Output for 5.4.20
1410542836-15a9-1e69-0f91-1de508ed057b
Output for 5.4.19
1410542836-0672-2145-1d11-1d5020281084
Output for 5.4.18
1410542836-1b1b-22c3-1aea-21d9025b1bc5
Output for 5.4.17
1410542836-1b25-09e2-06f1-21de25e90eb3
Output for 5.4.16
1410542836-0bcf-0839-219c-13d3266c0bbd
Output for 5.4.15
1410542836-203d-08d9-1dd6-084110e01814
Output for 5.4.14
1410542836-250d-1385-1032-0b9a1b5b0674
Output for 5.4.13
1410542836-0acf-0d02-2242-0aba172b140f
Output for 5.4.12
1410542836-10ca-1751-2329-1f9125b42369
Output for 5.4.11
1410542836-1d40-1e60-12ac-01f32189029f
Output for 5.4.10
1410542836-167a-0871-02a7-0fa1042810a2
Output for 5.4.9
1410542836-168c-101e-115f-213d12e11885
Output for 5.4.8
1410542836-0535-1de3-093f-1efe03d510ed
Output for 5.4.7
1410542836-129e-0a4e-2031-0734105012c0
Output for 5.4.6
1410542836-0333-104b-09e6-07fa0bd91616
Output for 5.4.5
1410542836-1489-18d5-1ce0-1a2f015d14bd
Output for 5.4.4
1410542836-17bf-0ce6-1278-1dc101e12176
Output for 5.4.3
1410542836-0b96-1cfc-094a-06570a582294
Output for 5.4.2
1410542836-156b-17d1-1da7-1adc195e0b34
Output for 5.4.1
1410542836-05c0-08ff-263e-22ec23ac19c7
Output for 5.4.0
1410542836-182b-096f-02cd-03e80ab31ae9
Output for 5.3.29
1410542836-1745-1534-0b65-0e37047b035c
Output for 5.3.28
1410542836-024a-2272-1d74-09c618640611
Output for 5.3.27
1410542836-20b2-0d7a-0fd6-243b24e917a0
Output for 5.3.26
1410542836-1151-02ab-07fc-068408d11401
Output for 5.3.25
1410542836-06bf-0090-006a-076d02461aab
Output for 5.3.24
1410542836-0888-07f5-1191-13811b2209e9
Output for 5.3.23
1410542836-1deb-2413-04f2-087708cc15ca
Output for 5.3.22
1410542836-049c-0e00-0236-21a71e1125b0
Output for 5.3.21
1410542836-1998-11fb-05ec-1abd18221034
Output for 5.3.20
1410542836-1fba-0609-1b6c-265812b70842
Output for 5.3.19
1410542836-2329-19b5-1ba0-0d0020562342
Output for 5.3.18
1410542836-045d-03e0-07fc-028622c508ca
Output for 5.3.17
1410542836-0117-1e19-1635-00b11ee903f7
Output for 5.3.16
1410542836-1c2c-1a28-1eaa-24f90d8310c5
Output for 5.3.15
1410542836-0942-13e4-0d59-1c1925c50540
Output for 5.3.14
1410542836-215c-02bb-203c-19040426150e
Output for 5.3.13
1410542836-1fed-0c8e-173b-10d614142703
Output for 5.3.12
1410542836-0d67-1288-032e-1558088612e7
Output for 5.3.11
1410542836-1100-1624-0caf-1a94095923be
Output for 5.3.10
1410542836-032a-09e9-15d8-0476093602b3
Output for 5.3.9
1410542836-13d4-0054-1248-0b2c17f11b76
Output for 5.3.8
1410542836-1e0d-1ee5-1045-12d6020f0e4a
Output for 5.3.7
1410542836-138f-1919-1d6a-17630eaa0a6b
Output for 5.3.6
1410542836-13f7-2450-1ff0-0eef22cf1e5e
Output for 5.3.5
1410542836-14c4-05a5-1802-23c01a361bf9
Output for 5.3.4
1410542836-14c0-2286-178d-00021e091503
Output for 5.3.3
1410542836-26d9-0f9c-0e9e-11d41dbb24d3
Output for 5.3.2
1410542836-0cbe-0588-1ebf-11b423780590
Output for 5.3.1
1410542836-11a6-11ae-0927-0a9b17c1155e
Output for 5.3.0
1410542836-0874-108c-248c-21e31f7109b0
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/kMcT5 on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION in /in/kMcT5 on line 4
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/kMcT5 on line 4
Process exited with code 255.