3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array ( 0 => '133531D2-B9C2-E18A-BBD8-4631993A0BFE', 1 => '133531D7-8652-4FC6-12BE-7FBE996F15D4', 2 => '133531DD-1314-17C3-C83F-1920649DDAC5', 3 => '133531B8-DDBC-A05B-AB2C-EFB0241128EA', 4 => '133531B8-DDBC-A05B-AB2C-EFB0241128EA', 5 => '133531B4-FDED-BD2F-39F1-0CED589EF251', 6 => '133531B8-DDBC-A05B-AB2C-EFB0241128EA', 7 => '133531B8-DDBC-A05B-AB2C-EFB0241128EA', 8 => '133531B8-DDBC-A05B-AB2C-EFB0241128EA', 9 => '133531B8-DDBC-A05B-AB2C-EFB0241128EA', 10 => '1332D316-C5D0-83FA-5B4F-97EC063512BB', 11 => '13353192-B87C-2580-ECB7-FF342C5401EE', 12 => '133531B2-5FE2-16D9-83C0-6C0C24AB8427', 13 => '133531B8-DDBC-A05B-AB2C-EFB0241128EA', 14 => '1332D310-CAF5-CB3C-A7B8-3FFAF3D05DD4', 15 => '1335319A-9ECA-5753-FA01-1BEB5E58E12C', 16 => '133531B4-44B3-DFF2-9420-9405851007C4', 17 => '133531B2-DC7F-58A2-1454-8670F18E8334', 18 => '133531AF-BBFC-D4CB-9A90-30D5DD5D40DE', 19 => '133531AF-A598-621E-5578-2F218DD4FB3D', 20 => '133531AF-71C9-920B-2815-83F20D77DA68', 21 => '133531AF-326D-4BD6-2D94-573BB60BEEC3', 22 => '133531AF-2361-C870-528D-5BB4DC1FF20F', 23 => '133531AF-0B4B-951D-1305-831BA041C6FA', 24 => '133531AE-FF45-B44A-F032-6021203768AB', 25 => '133531AE-AECC-0B56-2C54-A5212FE579B2', 26 => '133531AE-AAEF-3FC2-BE20-5225A1285484', 27 => '133531AE-8EF2-25D8-271C-1EA9808841F1', 28 => '133531AE-66C0-8DB3-C393-A938B164B650', 29 => '133531AE-5D01-0DD2-2FF2-60F315F1EA66', 30 => '133531AE-2DBF-4ADE-1EB1-9AA363479295', 31 => '133531AE-1AFA-47F4-1358-E334FC82830B', 32 => '133531AE-02BA-780F-5030-0743B1ED197F', 33 => '133531AD-FCE5-FFF0-D95D-2885ED6D0079', 34 => '133531AD-B2AE-A5D1-05A7-0E207C6ECED2', 35 => '133531AD-94D2-C2B9-74B4-695946278807', 36 => '133531AD-6EE2-C2F6-2D3B-73C02D5941A3', 37 => '133531AD-6C4F-89F5-771E-EE0F96588DA7', 38 => '133531AD-54FF-3F7F-6CD2-F09BD3D6ECE8', 39 => '133531AD-4BF6-A021-8D55-6AFE1E6C7E00', 40 => '133531AC-E596-E560-CDD6-10A837042BBD', 41 => '133531AC-BF96-B66C-956D-06572C449509', 42 => '133531AC-9260-FFDE-E4ED-F43CB4EBA14F', 43 => '133531AC-895C-887C-EBD1-40AE48383E44', 44 => '133531AC-7441-253C-7BD5-419D17871A7F', 45 => '133531AC-6ECC-2CF4-66B4-9B1FD5F89419', 46 => '133531AC-4B12-B836-24F6-4354268DA6C7', 47 => '133531AC-3E3C-CA1D-5D18-6D3D24E467CA', 48 => '133531AC-34A8-F2F6-6F65-79167374504C'); $unique_uqid = array(); foreach ($array as $image) { if (!in_array($image, $unique_uqid)) { $unique_uqid[] = $image; } }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0