3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function generate_GUID($prefix = '') { $uuid = md5(uniqid(rand(), true)); $guid = $prefix.substr($uuid,0,8)."-". substr($uuid,8,4)."-". substr($uuid,12,4)."-". substr($uuid,16,4)."-". substr($uuid,20,12); return $guid; } echo generate_GUID($prefix='pfx');
Output for 7.1.0
pfx7f5b9c7e-53b4-2c04-cfce-d26049082fc9
Output for 7.0.14
pfxc0818add-34f1-e229-dbc8-a73920cb6449
Output for 7.0.10
pfxa9b5a42f-d952-edc6-9314-0b1851381175
Output for 7.0.9
pfxfd7363e7-4061-7412-cf00-799d7ccee566
Output for 7.0.8
pfx1d796430-8c81-a3da-52d8-4df3f0429c64
Output for 7.0.7
pfxe38f3a5f-1c45-1e11-fdb7-3565700b2473
Output for 7.0.6
pfx0f5c529b-afb1-0b17-a3de-82f4ba2d2725
Output for 7.0.5
pfxb638c963-2626-fca4-b7fe-484282e3c2c5
Output for 7.0.4
pfx292e1526-36be-5409-a667-191430c2fbd6
Output for 7.0.3
pfx3c8cd781-8ef2-366b-3552-dd12acc610ab
Output for 7.0.2
pfx84d332eb-f8b3-dafe-de94-38a62adeff58
Output for 7.0.1
pfx9de9be9e-f5bc-f887-ead0-0fa20a9d8ead
Output for 7.0.0
pfxed182cef-1264-4cfa-531c-bf2779eb5fcf
Output for hhvm-3.12.0
pfxa8f8619e-550f-77e9-9384-18f811fc4cfe
Output for hhvm-3.10.0
pfx8a4d3f9b-0680-83a1-83c6-5c3daa248396
Output for 5.6.28
pfx90153f3c-08a6-fd13-7bb1-41b178098990
Output for 5.6.25
pfx9ec7c160-5b28-c69b-93e4-4599f13a0a70
Output for 5.6.24
pfxc2d696f3-b5be-5935-1c43-f25519d41ac9
Output for 5.6.23
pfxbd5ee942-abb7-ef6a-f89f-733578b59015
Output for 5.6.22
pfxe6018962-79c3-6341-b22c-d19138476ef3
Output for 5.6.21
pfx9ad0ca28-7b16-659a-443b-f39200560aea
Output for 5.6.20
pfxfbc20560-f7bc-ad9f-8024-c69d0ceb07c8
Output for 5.6.19
pfxfbf263d9-e55a-407c-55e1-72086fea93ce
Output for 5.6.18
pfx76827c66-9176-23b4-e33a-6ea1b0fae36d
Output for 5.6.17
pfx24c877bf-15c8-28fa-12c3-73040be79732
Output for 5.6.16
pfx323f3d34-35d6-adbd-97ba-7996e0284710
Output for 5.6.15
pfxa93f5696-7297-f0c3-a5ec-cfb3f1cb9ab8
Output for 5.6.14
pfxb58ef5be-18da-efdf-3b1f-0c177a066d4f
Output for 5.6.13
pfx92d0975b-3ae2-2aa8-fce7-a8a88413066a
Output for 5.6.12
pfx0578c96e-e991-e85e-9ee9-9d07b1a5b530
Output for 5.6.11
pfxd4ae9fc3-f52d-daff-bc46-42adb90662f0
Output for 5.6.10
pfx3497f922-aa54-713b-cad3-0a26bae4be2c
Output for 5.6.9
pfxcbc780ef-4e05-6f19-f985-90e49c6b665d
Output for 5.6.8
pfxd6728dd1-4515-9587-fe1e-8a289a4047a8
Output for 5.6.7
pfx0a728bd3-7d30-9c70-456c-bf9185c4a88e
Output for 5.6.6
pfx7f296357-f6ce-09da-a7f0-849d3c971105
Output for 5.6.5
pfx4b637268-8efb-5f06-91ab-e63374f48025
Output for 5.6.4
pfx213ee37b-79c2-de6f-f4a3-61cf1ed29226
Output for 5.6.3
pfxba60829d-9af3-4844-f097-4330dec5c5ae
Output for 5.6.2
pfx0574cb5a-f1ea-3cbf-2e80-5208f8a4dbf7
Output for 5.6.1
pfx5293eee9-9936-7b8c-8e4e-dc0412b64289
Output for 5.6.0
pfxbba0b5a6-6472-bf00-598d-db23f8df550f
Output for 5.5.38
pfxd319aff5-3632-be55-a962-9f47abcbeea9
Output for 5.5.37
pfx4bd0dc9e-d0a7-3181-64b4-8b5a7cd89f60
Output for 5.5.36
pfx09776af8-fbd8-66aa-8998-ac489277cec5
Output for 5.5.35
pfxbcde1149-9b6c-5090-b2d1-e305467b38e6
Output for 5.5.34
pfx2c289abb-4737-df2d-9284-1c8774a6cb33
Output for 5.5.33
pfx18c31578-1502-9100-5e06-8a9372735e0b
Output for 5.5.32
pfx144afb02-50ab-1389-e279-058a90e78594
Output for 5.5.31
pfx2d7a4573-80b7-e862-db71-2eac56004ed4
Output for 5.5.30
pfx8a4f48c7-25bd-5bea-ea62-8beb9abfdda8
Output for 5.5.29
pfxdd5f528f-5dd6-012e-6951-4d68dfca9b6f
Output for 5.5.28
pfx64322871-2921-4ac1-112a-15ef541d0e35
Output for 5.5.27
pfxb5715437-8094-a473-a7e9-3f40a6974004
Output for 5.5.26
pfx84757ca5-a23c-7314-b370-4969daf5d416
Output for 5.5.25
pfx7107eb8b-a221-8bd8-0607-694eedaac0a0
Output for 5.5.24
pfx9f53a68d-d7da-21a4-9743-0d7fe11c1ca4
Output for 5.5.23
pfxfd386dc6-a3c3-3fbd-444f-36ec0956e402
Output for 5.5.22
pfx4955fc80-ea46-635d-e81e-5b6a528086ab
Output for 5.5.21
pfxcc7cba4c-4830-f816-86c8-20540908f30a
Output for 5.5.20
pfx85226076-6c6e-1616-f90b-4b4928451632
Output for 5.5.19
pfxf8d31961-d97b-55a7-cbb5-df9de572793d
Output for 5.5.18
pfx5f214c17-5065-1c57-5bc6-f5812c1fc11d
Output for 5.5.16
pfx4ef69711-45ce-3269-dc1a-136861bb53c0
Output for 5.5.15
pfxac351674-85f8-291b-1bad-b6edd0a77dad
Output for 5.5.14
pfx320ecf74-3322-69f4-1cc4-817a3aa1910f
Output for 5.5.13
pfx53006e56-2e6b-e989-6b25-32965f8cb29b
Output for 5.5.12
pfxc12ce8d6-1c1e-c6dd-b182-bbf329ede5a9
Output for 5.5.11
pfx08000a08-272a-2719-0d08-9573e48d419c
Output for 5.5.10
pfxa1616fb6-c171-9dca-e0e6-fdb65f73e0da
Output for 5.5.9
pfxc468a157-ddae-b729-459e-e5c318249a58
Output for 5.5.8
pfxae7d2996-f62d-fdbf-25ee-d5772fa5d343
Output for 5.5.7
pfx6e636125-1561-17fe-2ea5-7b6586a32793
Output for 5.5.6
pfxaee056e3-0c9c-49bb-ff07-e9b3297fc1ca
Output for 5.5.5
pfxcecb04e8-8b66-b147-e452-4a6434a11d93
Output for 5.5.4
pfxd3892c9b-75b3-90a6-7909-111340598d36
Output for 5.5.3
pfxa88ffedf-92d6-fce2-f873-ba62bb6862b7
Output for 5.5.2
pfxdf9c53e0-6c94-d43e-526e-11b6777b4f5b
Output for 5.5.1
pfxc7f45879-e5c0-9fbb-c93b-c3b03f99b06e
Output for 5.5.0
pfx77be8454-8623-b5b5-cff7-f1f0693ef9b8
Output for 5.4.45
pfx4ded3b85-b5df-96c6-98d9-26ce42398b68
Output for 5.4.44
pfxeaa7af1f-c922-6056-aa40-b5a1fd03ab74
Output for 5.4.43
pfx06482344-e6b7-b909-4cfe-4c2c7b170e3b
Output for 5.4.42
pfx018fbae5-27e7-1414-021e-f8bfd19c8c64
Output for 5.4.41
pfx64f25a57-479c-c1b5-5add-a29a43623777
Output for 5.4.40
pfx060f5f6a-7d6d-cf2a-8776-5a4d33554cf2
Output for 5.4.39
pfx05fd389b-8ae2-800d-9976-ee5ccbbaca63
Output for 5.4.38
pfxfe6c3eac-bc32-b821-21df-e41621f6d6b3
Output for 5.4.37
pfx49148408-8825-b166-17fc-b46f59496a82
Output for 5.4.36
pfx78024fd0-2402-7095-6bf5-fc9b70c5c26c
Output for 5.4.35
pfx45228d38-bd56-c504-5257-f28f8fc5a6b9
Output for 5.4.34
pfx3485fe36-ccd7-689b-b9f4-ce7909773e0a
Output for 5.4.32
pfxfae30838-73c1-f79f-1c6f-4d9c9318b025
Output for 5.4.31
pfxc5423a66-d72d-52a1-748f-53a84b6492ac
Output for 5.4.30
pfxa6e0faa6-7120-b819-8764-5bdea6e9f195
Output for 5.4.29
pfx36ce6eed-c4bf-5500-0eeb-c3cb4fda8644
Output for 5.4.28
pfxbff25489-4d68-756e-a58d-2b78079fb8a7
Output for 5.4.27
pfxb40e363b-26e5-68e2-59a0-24264e033b25
Output for 5.4.26
pfxbfb8e177-e9ea-2a85-5d4e-9a0e02099aeb
Output for 5.4.25
pfxb4739416-cab0-bcba-9cd1-297a5734891f
Output for 5.4.24
pfx369dd7b2-fd31-13ba-9a56-25d4bafdd171
Output for 5.4.23
pfx8d236b5d-9a3b-446d-e70d-350e4a1d3ae2
Output for 5.4.22
pfx089c86a6-a270-8408-b953-bdc2881eda62
Output for 5.4.21
pfx048b1607-3185-4d9d-b932-e9abe03a3428
Output for 5.4.20
pfx8acfdeff-843d-9a33-a0ff-73493cfe133e
Output for 5.4.19
pfx15fed28f-f534-c3f5-c598-5b88f6bab5ad
Output for 5.4.18
pfxe89b000b-44df-cf1d-431d-d3ab5a26b46b
Output for 5.4.17
pfx1063aefd-df47-2758-29ed-c0bdb5fee418
Output for 5.4.16
pfx8763e58d-7db8-96ee-2b84-3c24ee1280f5
Output for 5.4.15
pfx54efa902-2e00-17fc-2e4c-b269c006f4ee
Output for 5.4.14
pfxed8ca0e7-52d1-7cb8-c2c4-0f8cabc668cc
Output for 5.4.13
pfx719b63f0-b985-542b-742c-e44b8f646a9d
Output for 5.4.12
pfxe44bb48f-e5cc-1bd4-514a-559c311e06cb
Output for 5.4.11
pfx4f2fe5f4-d80d-82dd-9109-28793bb070d6
Output for 5.4.10
pfx2311e613-e9da-0414-7d68-cf93555ad44a
Output for 5.4.9
pfxebeb47bb-6027-15b6-f87a-5428a196abac
Output for 5.4.8
pfx09380351-09a1-cf75-2d7a-5890911adbc3
Output for 5.4.7
pfxeb3c95d9-7b12-71ee-2078-ae15a8007e00
Output for 5.4.6
pfx1efc1b86-00a1-2a08-eed0-260750354cc8
Output for 5.4.5
pfxd28abd0b-f1d7-e430-6fe2-b702f2f020e3
Output for 5.4.4
pfxe927e2c5-43b9-e7a9-f95d-24266500aee3
Output for 5.4.3
pfx9fe7e5a9-c260-6e15-eb55-8274a47dcc41
Output for 5.4.2
pfx7f4714b7-2795-4901-2f58-bae17c3c98bd
Output for 5.4.1
pfx2dc17586-e3f1-4ba2-629f-4b9206674b48
Output for 5.4.0
pfx85b79ae5-0acb-0183-cfd9-393c04194778
Output for 5.3.29
pfx147a1490-3462-1678-8dbb-b6c597f7070a
Output for 5.3.28
pfx6c5845e2-1e61-1e8b-f591-de394534fd49
Output for 5.3.27
pfxb7f2f9d5-b9b4-c2fc-0466-9f32907160b3
Output for 5.3.26
pfxe77e6b73-5bb7-9b16-9fc3-222def839508
Output for 5.3.25
pfx5474e9de-f4b4-1c12-e1c2-1ab3b96c2814
Output for 5.3.24
pfx174d5ab6-51f4-60fe-167a-929e5c0b3167
Output for 5.3.23
pfxf615a4f7-f3ec-98dc-8d6c-5c616f79ce38
Output for 5.3.22
pfx8c345896-4b58-16b3-74c2-0f98c05ef7a4
Output for 5.3.21
pfxbb3be998-6d70-1316-857d-79885a1d0872
Output for 5.3.20
pfx65c834c8-7d43-8c77-950e-d251c718e925
Output for 5.3.19
pfxf0d4f9c0-027c-f5f1-1f39-dd4de0ac32f9
Output for 5.3.18
pfx85a52483-6ddd-444b-f18e-286394a2b6f8
Output for 5.3.17
pfx9139868c-62aa-00db-93c6-c523f1b2488e
Output for 5.3.16
pfx02231069-b817-343f-b7e7-76b38d08a7e1
Output for 5.3.15
pfxca0e3e18-2b94-9c1c-039a-e1e2515cae23
Output for 5.3.14
pfx9104a2f1-c4e5-b6f2-ca35-0f0391712654
Output for 5.3.13
pfxdd80040b-675a-2666-7abb-05c43f1be9e3
Output for 5.3.12
pfx454a9e6d-a3b3-4675-9196-c3acce3efe07
Output for 5.3.11
pfx46763d46-ba2c-e85c-b7b4-4f0a491ec079
Output for 5.3.10
pfx2cc69ec6-c2b4-ed61-3621-e85b7f6cb00d
Output for 5.3.9
pfxd1bd4d4c-eeca-a41a-3aa4-37649baee129
Output for 5.3.8
pfxee35c96c-904f-ee90-dee9-21a8f1f53d4b
Output for 5.3.7
pfxb4e0a503-408e-b054-fd28-29287ff00802
Output for 5.3.6
pfx111bdba3-bd09-d133-d1c0-d7b64841020f
Output for 5.3.5
pfxc4beade3-c0c3-a119-5613-e4c09bb3ec2d
Output for 5.3.4
pfx5a315f00-f07e-f70d-6a39-1524f7de68f7
Output for 5.3.3
pfx3c682dc3-65a8-74cc-88f0-b47067839cb2
Output for 5.3.2
pfx96010699-bdd8-83b0-3418-77e4f37c1169
Output for 5.3.1
pfx1e13ac2a-ebc2-d57a-ad57-42d27861c29a
Output for 5.3.0
pfx1d315a70-fc9e-8f76-b954-0260bb1412bf
Output for 5.2.17
pfxdebff1e2-bda5-6f45-69bf-13fb7e2e164d
Output for 5.2.16
pfx22d94a87-9605-464b-6896-6eb4de3398e8
Output for 5.2.15
pfx8346b23f-fce0-4969-0419-e127cb97a993
Output for 5.2.14
pfxe1f03fc9-dd71-575b-d9a9-7642daafe805
Output for 5.2.13
pfx6bb1b45d-d3ec-23d8-64a5-cc3ac03ef0b3
Output for 5.2.12
pfx13d0b7f0-292c-7af6-67a7-e0ce7c93af2f
Output for 5.2.11
pfxcc07cf98-cfaa-bc2d-574f-66254ffa46e4
Output for 5.2.10
pfxb9a41662-d7f6-4d12-63f2-d4b7287c6a1c
Output for 5.2.9
pfx2b9e3746-65b4-464d-64ce-c5e7bc14afbd
Output for 5.2.8
pfxe9bdf4b3-c536-d609-3e9f-53d05deca471
Output for 5.2.7
pfx1b43aaa8-1467-191b-2c0e-757e7d436876
Output for 5.2.6
pfxc3b23e54-fd8b-9761-0c15-c6f55b355c76
Output for 5.2.5
pfx961b6d44-2f7a-e1d8-f0ea-20368ff04e7b
Output for 5.2.4
pfx0c1e8f90-19ba-3b16-60b3-d293927b432c
Output for 5.2.3
pfxd93c4994-6a74-517c-0e58-f9504366af89
Output for 5.2.2
pfxf8a36a1b-479c-e2bb-7125-49d6b0498073
Output for 5.2.1
pfx808a318b-d00f-d076-5134-63e257ebd547
Output for 5.2.0
pfx080d1873-37c2-c216-703d-e62fd3cf10a3
Output for 5.1.6
pfxa4f6559b-728f-92cf-c6a1-0394d0cbfb6d
Output for 5.1.5
pfxad0f82aa-f327-78d6-ef3c-e46e8ff1a21b
Output for 5.1.4
pfx20d8b3d8-05d6-af28-7855-964ad7972544
Output for 5.1.3
pfx5f15d70a-8f5d-4e8a-7b1c-746e272ee936
Output for 5.1.2
pfxd966ae29-b29d-3947-68c6-a0897850b39b
Output for 5.1.1
pfx4122b4e6-23a1-2df8-aadf-67825ca67182
Output for 5.1.0
pfxad6f3796-88ac-3db8-0b91-ebe5cb37c3db
Output for 5.0.5
pfxab570369-e557-8625-9efb-ce0640d694b7
Output for 5.0.4
pfx2bca8109-751d-4d89-11bb-d3e9177d752a
Output for 5.0.3
pfxf93cea25-329d-0c05-ed89-cd9178f02c54
Output for 5.0.2
pfx8412cddb-47e5-9852-b29e-ce3b7a2b6f19
Output for 5.0.1
pfxec15c8de-f24b-3601-6c75-f8e8ed618c5a
Output for 5.0.0
pfxd7c6d8f4-20a0-ecb4-48c7-71598b06aa33
Output for 4.4.9
pfxbd5796e2-9453-4fd5-a809-dcc2f6116104
Output for 4.4.8
pfxbd84af06-fd35-6041-c403-68911c583e44
Output for 4.4.7
pfx43d7b6a9-6667-dec6-066b-393b1fb48aed
Output for 4.4.6
pfx636ac8b5-e6f1-d7b6-885f-c5c9f2324967
Output for 4.4.5
pfx5e15323d-5f3f-072c-0846-31f43921d1d7
Output for 4.4.4
pfx199f4518-d5d6-42c2-a1e2-44657ef4f848
Output for 4.4.3
pfx8ac9ebfa-9453-9a69-f726-c11565a79a70
Output for 4.4.2
pfxd0b029f6-cb43-9fda-7833-00667257e94d
Output for 4.4.1
pfx337e3599-35b7-fb6c-95de-f694b40d8540
Output for 4.4.0
pfxb1a8c932-d7d5-a264-25b5-78c67ef63454
Output for 4.3.11
pfxfce0bfa5-55f1-3c68-43be-fb42b8055a9b
Output for 4.3.10
pfx4bbf12ad-200b-1123-b0d0-32da9029d214
Output for 4.3.9
pfxbd21f8d5-9285-4c52-0fd5-8d21c87a2c94
Output for 4.3.8
pfxe3b43231-f132-7096-7fc7-db8445443f48
Output for 4.3.7
pfxb7dbf1ce-005a-ce5c-4a92-d2594cdf05ac
Output for 4.3.6
pfx2a9404a2-b4a7-980f-29a1-a16e954d1de1
Output for 4.3.5
pfx369f3851-d244-0433-95ef-8c34de81cf45
Output for 4.3.4
pfx55183935-da9f-98a3-27d7-46f470cab180
Output for 4.3.3
pfx2598e841-dabe-f5e3-0bfa-762751a7fcfa
Output for 4.3.2
pfxa154e726-0511-dd1e-8da2-7d734af7c602
Output for 4.3.1
pfx6f419e71-f525-7ff5-97a5-3aedaad5c4a5
Output for 4.3.0
pfx1b3696c4-5aa0-812b-a65d-305ae40b4dba