3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function generate_GUID($prefix='pfx') { $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
pfx3cdd6686-0720-22cb-e4f6-56b9d85169f4
Output for 7.0.14
pfxcb7321dc-dd60-3178-6d37-85896ee24383
Output for 7.0.6
pfxf520b21d-803e-5998-53d0-3b48b0bf52d0
Output for 7.0.5
pfxf046760a-92b4-f233-9c9e-f81cd87c7ac9
Output for 7.0.4
pfx978edaa3-387e-ba57-032c-f72f1f414761
Output for 7.0.3
pfx81ed90f4-559c-788a-8841-429a2576193d
Output for 7.0.2
pfx78507750-852e-0c60-261e-0531cb21187c
Output for 7.0.1
pfx9ed1a60e-e98f-65a4-ed1a-f3964c8048db
Output for 7.0.0
pfx3103366b-c31c-398a-07da-51d58bde935d
Output for hhvm-3.12.0
pfxa56d884c-0436-e40e-21fc-810339f2a048
Output for hhvm-3.10.0
pfx3728243c-4e5f-bc2b-a630-1af70829c161
Output for 5.6.28
pfxbca74776-70b2-72a5-18c1-f67643dbfb19
Output for 5.6.21
pfxb5fdc82c-af11-e311-cdcd-81ac6160f493
Output for 5.6.20
pfx41ec664b-26e0-bd99-4792-44c36ec5b334
Output for 5.6.19
pfx1d9d915e-fcff-22b5-6917-1b381c200fae
Output for 5.6.18
pfx87dce811-384f-f3d0-fa8e-56bc194840e5
Output for 5.6.17
pfxffbf9818-952c-7604-b646-1fe767696a07
Output for 5.6.16
pfx635217b3-f310-12a4-9da3-959ca4901cca
Output for 5.6.15
pfxd5bbcaf8-257d-7ff9-dfda-fb205073c834
Output for 5.6.14
pfx396e9edb-d7aa-eff2-30bd-3240e26e1719
Output for 5.6.13
pfx39bb33d5-2e6f-7c70-30a6-d4b5c7df089e
Output for 5.6.12
pfx62d36f7d-2930-c39c-c5cc-5474aa350956
Output for 5.6.11
pfx45c49e7e-810a-4154-8d0c-4b509e247327
Output for 5.6.10
pfxa0337bd2-bb86-5f39-4314-6e6d6fa4bb1c
Output for 5.6.9
pfx2e6b882b-3c77-ab40-34c9-60e60a6f0d8a
Output for 5.6.8
pfx8e0d11fd-acf6-1029-0459-a25daa467f36
Output for 5.5.35
pfxdad2b5d8-dc41-f46f-32f7-ff2af005623b
Output for 5.5.34
pfx230e4b7b-2fcd-d5b7-cc98-a4d0316bb6c7
Output for 5.5.33
pfx67bdac77-8009-3a34-bf71-40c72eba2ce7
Output for 5.5.32
pfx76b6cdaa-950b-fb17-f0f7-b762b79074d4
Output for 5.5.31
pfx3fb80d51-249d-1f46-25ff-8b0742811e65
Output for 5.5.30
pfx223935f7-6ee2-91f1-d0d6-f721411890ca
Output for 5.5.29
pfx16d54e7a-8af7-ed33-4f94-52b881e537d6
Output for 5.5.28
pfxbe1b1e19-8145-5082-3d0a-fb466e8ec84c
Output for 5.5.27
pfxc8538ed6-dbb6-d54c-7df3-51c09f1e01c2
Output for 5.5.26
pfx37389725-cfc4-1c39-0fbd-890a75a06c7e
Output for 5.5.25
pfx60b3feaa-1c9f-585c-a30f-1a890c2b645e
Output for 5.5.24
pfx210ffd92-65bd-156e-719c-1c693586cbb7
Output for 5.4.45
pfx89bdf8c1-2da4-c36f-519f-588b1586e6af
Output for 5.4.44
pfx082b9df2-1106-2837-b1be-048cb3c93eb4
Output for 5.4.43
pfx1c09e014-97ad-d647-ef6f-205c42172e51
Output for 5.4.42
pfxaf63aac8-d0ac-3508-d019-fc4aa87cfd16
Output for 5.4.41
pfx4d13c154-3d19-cdb5-1af4-da933656ed95
Output for 5.4.40
pfx32c22b93-e990-b311-05e6-c25421772867
Output for 5.4.39
pfx70be6357-f683-aeae-6e6f-0930a59c2d5f
Output for 5.4.38
pfxfb496ebd-08d1-bc7e-f051-549a75fb5032
Output for 5.4.37
pfx62c957bf-aec5-903e-cee0-7be924b20372
Output for 5.4.36
pfx27d2fea6-cc52-d268-d715-91940074ef48
Output for 5.4.35
pfx9517962d-c2d2-54d9-7794-689b558b2dba
Output for 5.4.34
pfx2a28d529-37eb-3d7d-cbbc-fabc12e8fc66
Output for 5.4.32
pfxbfae8bd8-550d-1fea-1532-acf6b151f512
Output for 5.4.31
pfx5db58958-d994-1486-a207-82ddf609fc51
Output for 5.4.30
pfx04af74a2-062f-d44d-9622-4b89b9a85cc9
Output for 5.4.29
pfxfb29766d-6327-1e2d-84b7-446064aff5d5
Output for 5.4.28
pfxdbc91d7f-5571-c65b-5790-bea4521dec78
Output for 5.4.27
pfx13934e7a-4063-1fe4-00a2-600e99309e49
Output for 5.4.26
pfx63685273-1e5b-8a5c-ebbd-4fc252553484
Output for 5.4.25
pfx0a28df15-3ed9-7732-e518-ac6b1acfe480
Output for 5.4.24
pfxbd6356f3-992c-d62c-2c36-bfbdc469fde9
Output for 5.4.23
pfx6cda07fa-fabf-cca8-275b-f80edd6108d6
Output for 5.4.22
pfxb3efed7d-6d8a-0417-5726-6b65699ff2f8
Output for 5.4.21
pfx5aa71bb7-6588-fc47-15ea-769fc0cebfcc
Output for 5.4.20
pfx2636b656-34aa-21c9-2cd5-726a7efbbc50
Output for 5.4.19
pfx2dabea57-fe67-7444-277f-1c7615ea6faa
Output for 5.4.18
pfx7c950e06-07d7-b1a7-fdeb-e4a8d6769958
Output for 5.4.17
pfx0da9779a-50a0-61c0-08fe-0f59bb3a5750
Output for 5.4.16
pfx116f0a8f-2e97-ea09-fd73-35c457a086fb
Output for 5.4.15
pfx0a74be58-6152-0fdf-2833-0fc22fe3ead7
Output for 5.4.14
pfxd246e1c7-eb14-4675-44f7-37472a6a4c1e
Output for 5.4.13
pfx95bd2e2e-2598-a64d-3302-3f33e61035eb
Output for 5.4.12
pfx347e4986-6822-09f4-edfc-993e157ba9c5
Output for 5.4.11
pfxc7b3546d-a534-ab2e-9b70-36c55fa6d830
Output for 5.4.10
pfx261150ed-09cb-ad0c-72fa-f773e4d0605b
Output for 5.4.9
pfx6ec6f4e4-0f33-420c-e488-ffe738e4c67f
Output for 5.4.8
pfxafc3afc5-166d-8208-3f78-176904ac0a0f
Output for 5.4.7
pfx23811e8d-f57d-a59f-29ca-cf050cfb63ac
Output for 5.4.6
pfx8cd771c7-c6be-c7b7-a342-f08e3a4aec3c
Output for 5.4.5
pfx4b389267-2c91-7b35-3345-eceea9afb4e5
Output for 5.4.4
pfx578add02-e9d6-879f-963d-dac8509e6b60
Output for 5.4.3
pfx3985b7ad-f083-5ba0-159b-29fb640f9bcb
Output for 5.4.2
pfx2ef4b3a4-2746-9c4e-fd6a-28b6105b1ecc
Output for 5.4.1
pfx75ec1df1-d032-3091-3fdc-1a41822d9e8a
Output for 5.4.0
pfx93a237f2-7a94-e091-3b68-7b88c33c08b4
Output for 5.3.29
pfx2156c9c7-449c-ea83-7820-c357b7714b0d
Output for 5.3.28
pfxdc624508-5612-9de0-faa5-d899191e36ab
Output for 5.3.27
pfxd738f450-c171-ae56-86b3-46f1a18c4677
Output for 5.3.26
pfxf125ed04-95d1-5e36-e5b8-d7fc54be70f0
Output for 5.3.25
pfx40c249a7-9ded-8067-3864-26c98c7b1643
Output for 5.3.24
pfx46c9d887-73fc-39f7-8ae2-253fcba7e86c
Output for 5.3.23
pfx40666693-c916-4ccb-3d14-b0a8e8acff64
Output for 5.3.22
pfxa1c405e6-cc8d-b5e3-beef-3e6c1444b637
Output for 5.3.21
pfx77a04735-21fd-20db-6128-ed73d7c23e48
Output for 5.3.20
pfx02fba142-2f0a-6d8c-9577-60022c4fd22d
Output for 5.3.19
pfxa1576234-7750-2bdb-6158-65c0d181bf64
Output for 5.3.18
pfxdf4e3d33-3884-da13-4e55-68b84342ed86
Output for 5.3.17
pfx27696812-cc51-1ba0-6a7e-0794a58e583c
Output for 5.3.16
pfx291d9393-4ae9-b694-8b82-7f9cb5873d03
Output for 5.3.15
pfxb0478a23-de36-1a04-28b8-4035818815f7
Output for 5.3.14
pfx32beadac-93e0-e9cf-2a10-346a673af5dd
Output for 5.3.13
pfx1257eec1-d83f-cded-67cf-83b70838a45f
Output for 5.3.12
pfx2bb47501-8293-f2db-ae8d-a2ca496e06b3
Output for 5.3.11
pfx00d2a237-3f45-5fc5-e120-7b6881959995
Output for 5.3.10
pfxe4eb358a-c8c4-ed21-9c3e-126947c8cea1
Output for 5.3.9
pfx46e9a114-754a-5141-7200-562e9c5132a9
Output for 5.3.8
pfxccba8f09-18f7-2c13-f80d-c80de7558d25
Output for 5.3.7
pfxb6c93906-e8f9-55fc-83dd-12ea8ad812ca
Output for 5.3.6
pfx72bc700f-b8d6-375c-64c2-a5269f1f031f
Output for 5.3.5
pfx6f2b93ef-25a2-807b-39dd-43add2b0993e
Output for 5.3.4
pfx2f3a74a6-2acb-0755-f854-fd0a6e7c4a66
Output for 5.3.3
pfxcd0c488a-0b3f-e6cf-9ea8-34ad9d3337d6
Output for 5.3.2
pfx5cf36011-a9a8-baed-abdb-b518d25f814b
Output for 5.3.1
pfx080a9f2f-ac05-dc6b-4d61-44c53e82aac9
Output for 5.3.0
pfxcec5baac-e05f-bdad-795c-d6fbf630c03e
Output for 5.2.17
pfxf69de2b4-817f-71b5-f123-68de7e6bccee
Output for 5.2.16
pfxc1aed81c-d281-3330-b4ea-42a57632dd17
Output for 5.2.15
pfx3a27987e-a44f-0c81-7bac-7304f202b9a4
Output for 5.2.14
pfx54317a36-bb0a-f57a-5d96-c8fb5b861c61
Output for 5.2.13
pfx9f5b2ad0-f4ab-ad63-24f3-078fc3e80e7e
Output for 5.2.12
pfx3c453b3a-e523-ce41-d518-c0e4cc70cc21
Output for 5.2.11
pfx630dbf11-08b0-682a-a530-9b4bcb78553c
Output for 5.2.10
pfx358d9290-7f9b-57fa-7b04-b5c64ef65fcb
Output for 5.2.9
pfxcf40a66a-fcac-e9b6-eeb5-62e51550a1ab
Output for 5.2.8
pfx51426bbc-54b0-97af-bcea-9fbce3e9eac0
Output for 5.2.7
pfx139ec2a4-7b04-3dee-5cbc-5cfc8b55fe65
Output for 5.2.6
pfxef2d425b-eb7f-e5cb-3013-72b4f021803c
Output for 5.2.5
pfx9f3e2d92-5d43-66e6-5422-0b984f00992a
Output for 5.2.4
pfx237c2d57-67ab-5e5a-f39c-a8b9121170f6
Output for 5.2.3
pfxdaa1b44c-00e9-72ca-43a1-2ef04138dc21
Output for 5.2.2
pfx3c1b2404-2f26-aa84-2c3b-cd4f741618ae
Output for 5.2.1
pfx3bff8866-e51b-7939-22c2-ecfa195f46f7
Output for 5.2.0
pfx51713823-2c3a-da47-afb0-04c50788b443
Output for 5.1.6
pfx20a1b0a1-9598-dc3c-f076-2e33c457b10c
Output for 5.1.5
pfx92847fb3-f2b2-ce2f-9d9c-360d93e149ee
Output for 5.1.4
pfx3944e28f-9913-a539-99be-1fd173ef0926
Output for 5.1.3
pfx08281323-9535-721b-e808-b4735ae0804e
Output for 5.1.2
pfx5e47643b-3486-a130-c912-eed21eae2e60
Output for 5.1.1
pfx28a3d1bc-e194-d3a6-e158-a27dfee015e6
Output for 5.1.0
pfxf03adec0-5b21-b4dc-ae95-a52a3f1bd8e2
Output for 5.0.5
pfx0a1a97ca-14ed-9c03-4063-8e972f0cd7f5
Output for 5.0.4
pfxd69ee531-2404-b9a9-c287-a2e89d892a1b
Output for 5.0.3
pfxb2c69c03-19e6-1093-5f57-4acf8ba2c7e9
Output for 5.0.2
pfx729025fe-b815-9833-3f8e-935c3c1af0e1
Output for 5.0.1
pfxbe240c69-877e-957c-1a6b-94966b6ac825
Output for 5.0.0
pfx55b45886-2b37-8763-0cfd-84eb53e1d6ad
Output for 4.4.9
pfxeaca02f8-2eca-70bd-b957-2c1bbf1b9aa9
Output for 4.4.8
pfx0fe1007a-39dd-df6a-77f8-f63c204401cd
Output for 4.4.7
pfx2f8cdb49-89a9-3202-badd-4a0a7e44dca2
Output for 4.4.6
pfxf1433142-ffdc-2b6c-0550-8746bcddd40a
Output for 4.4.5
pfx6d33e564-7c72-cb23-6039-e3386f663759
Output for 4.4.4
pfx87c66be7-9963-b6d0-abd8-1f9be0042ebb
Output for 4.4.3
pfx2a49d0dd-38bc-561d-4165-1e901ab785f0
Output for 4.4.2
pfxfd752cf5-2eff-553b-c4b4-f3e7e49dcee2
Output for 4.4.1
pfxa7a0d796-f6cd-6815-efe5-7f8dc3a62c55
Output for 4.4.0
pfx82aa3806-03a9-d97e-29f5-9c81030604c0
Output for 4.3.11
pfx24e42818-0d47-a6f3-6040-2f302ac207d3
Output for 4.3.10
pfx26cffe4d-dcdb-6f25-38be-3d818ec15758
Output for 4.3.9
pfxdff549ba-9cd1-94df-5607-7af0730f3910
Output for 4.3.8
pfx9ad01d7a-a00c-1900-aea9-3e3c469c41d5
Output for 4.3.7
pfx22c69a67-bef3-b2dd-ce15-17fab7ddc960
Output for 4.3.6
pfxaa938bea-7860-7a66-89e3-cfd4b5420c8f
Output for 4.3.5
pfxae9b7039-11c3-d8be-2454-3a39594e3b58
Output for 4.3.4
pfx64656ef6-fa2c-decf-a959-a181acea0852
Output for 4.3.3
pfx1d8b4470-1aaa-d8e2-259d-fefd8279c236
Output for 4.3.2
pfxb024bbac-5f40-b99d-a860-648bfb8973ba
Output for 4.3.1
pfxdcc75203-f095-ac84-96c9-ee576a2bf370
Output for 4.3.0
pfxdbdad2c4-6922-383e-3cac-b3e570c0c7a9