3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $uuid = sprintf('%04x%04x%04x%04x%04x%04x%04x%04x', // 32 bits for "time_low" mt_rand(0, 0xffff), mt_rand(0, 0xffff), // 16 bits for "time_mid" mt_rand(0, 0xffff), // 16 bits for "time_hi_and_version", // four most significant bits holds version number 4 mt_rand(0, 0x0fff) | 0x4000, // 16 bits, 8 bits for "clk_seq_hi_res", // 8 bits for "clk_seq_low", // two most significant bits holds zero and one // for variant DCE1.1 mt_rand(0, 0x3fff) | 0x8000, // 48 bits for "node" mt_rand(0, 0xffff), mt_rand(0, 0xffff), mt_rand(0, 0xffff) ); $packedUuid = pack('H*', $uuid); echo $uuid . PHP_EOL; echo $packedUuid . PHP_EOL;
Output for 7.1.0
1489fadd7431414a9865a23ae3b3e898 ���t1AJ�e�:��
Output for 7.0.14
f8964aecd1824dce99f09d6a5d865410 ��J�тMΙ�j]�T
Output for 7.0.7
9762d47f449440608c7ba23acbdb389c �b�D�@`�{�:��8�
Output for 7.0.6
1a982318ea4b491a81990ddc826438c3 �#�KI�� ܂d8�
Output for 7.0.5
0582ac1c7a2d48cbb5c75910053773e1 ��z-H˵�Y7s�
Output for 7.0.4
f3c73763d19f44758a03d8f084e5834e ��7cџDu����N
Output for 7.0.3
d544bf016bc54c2b92d98aaa1d4e0eb5 �D�k�L+�ي�N�
Output for 7.0.2
d25ff27422fd4bdda6135eb3efac2389 �_�t"�Kݦ^��#�
Output for 7.0.1
9e6341e3cb0749dbb87fd12a595c166c �cA��I۸�*Y\l
Output for 7.0.0
21cf27dafbf6466298811da9357a34b6 !�'��Fb���5z4�
Output for 5.6.28
2f6023219f344376a86101c30396564b /`#!�4Cv�a��VK
Output for 5.6.21
57aab515941b4bc1a5982f798e639d0e W���K���/y�c�
Output for 5.6.20
0d57861134ca40fbb40a36fd1790e1f7 W�4�@�� 6���
Output for 5.6.19
719a0eb775f848b1b0b76a22911472bd q��u�H���j"�r�
Output for 5.6.18
39172fee43b2411d8926beaef4f56eb9 9/�C�A�&���n�
Output for 5.6.17
c8cc2df9ab3c433abf19f3234387e517 ��-��<C:��#C��
Output for 5.6.16
a38494f82965420e95420209fd8ac7cb ����)eB�B ����
Output for 5.6.15
17146573d4af4632aedf2a09f9793e65 esԯF2��* �y>e
Output for 5.6.14
906d69df481f43d1b7d001540e50301d �mi�HCѷ�TP0
Output for 5.6.13
276fce865b214efd8f3a7ad03af8f1e2 'oΆ[!N��:z�:���
Output for 5.6.12
fd27b5d20a25426595acf49faf198c55 �'�� %Be����U
Output for 5.6.11
e85205f0248e46bc95be403e65482bc1 �R�$�F���@>eH+�
Output for 5.6.10
8f09d5b41c3b46c3b41a2afee6ce9c31 � մ;Fô*��Μ1
Output for 5.6.9
05701d9803fa4eb985a6c65d38e72245 p��N����]8�"E
Output for 5.6.8
f4700d14324c4080a98ed6c3b5fafeae �p 2L@����õ���
Output for 5.6.7
c697321dc9cc44799ea49d237e77d780 Ɨ2��Dy���#~w׀
Output for 5.5.35
f987022c8bda47d1ae97ef617f56820a ��,��GѮ��aV�
Output for 5.5.34
c88c363b3a0040d2b27fd6f157c87ae2 Ȍ6;:@Ҳ��W�z�
Output for 5.5.33
1795300f4e6f4930a343a7254d0200ca �0NoI0�C�%M�
Output for 5.5.32
9c31e72f73d147efb722b507d47dcc98 �1�/s�G�"��}̘
Output for 5.5.31
fa0aa15373464009a4ffd7ff95d0f181 � �SsF@ ������
Output for 5.5.30
9938f70afecf44cfba98f45050a6cd31 �8� ��DϺ��PP��1
Output for 5.5.29
e67f3d2653b04b56b8c332231dcb8362 �=&S�KV��2#˃b
Output for 5.5.28
6b08c9b220854b7e8989776c118dea95 kɲ �K~��wl��
Output for 5.5.27
e6f3f11a49f94b0c9c251489ddd5663e ���I�K �%���f>
Output for 5.5.26
cd0a14a2a4aa400b9642f08509a3de91 � ���@ �B� �ޑ
Output for 5.5.25
9b8bd77ef5794341a561099f89fe2ae5 ���~�yCA�a ���*�
Output for 5.5.24
f3ba1b329e0d4c6c88f53c15870a8ce3 �2� Ll��<� ��
Output for 5.4.45
edbe83bfa32f4c3d835be158b7f51d83 ���/L=�[�X���
Output for 5.4.44
3f5ac7e11c0a4a669c57b034af5a60fc ?Z�� Jf�W�4�Z`�
Output for 5.4.43
d843f6d613804b918ad72dc8e5ccf24b �C���K���-����K
Output for 5.4.42
30dfa490558f48d7868aad78ab83d374 0ߤ�U�H׆��x���t
Output for 5.4.41
ffe4c6f66c58450bb8da7dc4b84ec569 ���lXE ��}ĸN�i
Output for 5.4.40
373bd46767fc4fe98bcaf0dec9c5d8c0 7;�gg�O�������
Output for 5.4.39
618720b1806d4e05b6acf593dea45f23 a� ��mN����ޤ_#
Output for 5.4.38
5352af1ebf5e453aab5b3d9108573541 SR��^E:�[=�W5A
Output for 5.4.37
6314d80a520b431ca8f7cd92326be130 c� R C��͒2k�0
Output for 5.4.36
6092e9e722814448904a56a8ee114416 `���"�DH�JV��D
Output for 5.4.35
df1c8223fa9840fda03b49f7136f387f ��#��@��;I�o8
Output for 5.4.34
18e7c764c08843238992157f0ec633fb ��d��C#���3�
Output for 5.4.32
7b08e2677dfa43f393d5e90bf23ae778 {�g}�C��� �:�x
Output for 5.4.31
d30356f4ffb24791919c1562b5e7c31d �V�G���b���
Output for 5.4.30
85a6976c4bb34a47953f7a189b327d19 ���lK�JG�?z�2}
Output for 5.4.29
9547775d3f8c4174b9129f17b0480b0a �Gw]?�At���H
Output for 5.4.28
de8ff1b73fac4d708c771355de2fb58f ޏ�?�Mp�wU�/��
Output for 5.4.27
3e19c5fdf8f647888ffe57be0812647f >���G���W�d
Output for 5.4.26
588cb0c9e6c24f49885ed10376b0a263 X�����OI�^�v��c
Output for 5.4.25
de6f1ec1d8c4428091ee227b874078e4 �o���B���"{�@x�
Output for 5.4.24
df0dc5d604fc42e58b6a55a320a4204e � ���B�jU� � N
Output for 5.4.23
ec027ac13edb41d4b55ee13c1b23e975 �z�>�AԵ^�<#�u
Output for 5.4.22
3a254e5389cb41fcab625c8e153c2149 :%NS��A��b\�<!I
Output for 5.4.21
ed7374d95f684e21a7390e1e492c160c �st�_hN!�9I,
Output for 5.4.20
390fc51eda1243b68a7433b2f106338d 9��C��t3��5.4.203�
Output for 5.4.19
cbe91b5b111c4a9b96dd0a2b18d907cc ��[J��� +�1KV3K�
Output for 5.4.18
f84dcf59cacf413ab2eb03d997e0f782 �M�Y��A:��ٗ�
Output for 5.4.17
6df07ef3588244cb9bb119118e5cc20a m�~�X�D˛��\�
Output for 5.4.16
12d7cedb26b140ae9d7d8d9d48b74375 ���&�@��}��H�Cu
Output for 5.4.15
76d559bf770e417f8e94946a5b0d2c06 v�Y�wA���j[ ,5.4.15
Output for 5.4.14
f8e213c371354c9d825f775ca42205e8 ���q5L��_w\�"�
Output for 5.4.13
b14dd49f88484f4f8c10f06e38763f92 �Mԟ�HOO��n8v?�
Output for 5.4.12
c3cd29e51717458a8e093706bcfea7b5 ��)�E�� 75.4.12����
Output for 5.4.11
2635788d4f614275ad7092bf910e231a &5x�OaBu�p���#
Output for 5.4.10
f64302ffb19c401ca4cc729035ba199b �C���@��r�5��
Output for 5.4.9
b96fd45fdbb14fb785c45b8e0894ad50 �o�_۱O���[���P
Output for 5.4.8
b8b66af4d8e544928bae214612d70425 ��j���D���!F�%
Output for 5.4.7
273edcc5dacf4cd384d1d00f20e335a3 '>����Lӄ�� �5�
Output for 5.4.6
6921a986fb234e11a239b7180ada5c0b i!���#N�9� �\
Output for 5.4.5
ef17958874bc48969c58fdbec448c8c6 ���t�H��X���H��
Output for 5.4.4
131440f32b5749ea981b4eb46416c409 @�+WI�N�d�
Output for 5.4.3
bd2a95cbd56e43a8a32ed144860115df �*���nC��.�D��
Output for 5.4.2
b8f9c5102ca540d199e3677a7f78cafe ���,�@љ�gzx�
Output for 5.4.1
7d3f3a12344f48cb8bd7ca250af24be8 }?:4OHˋ��% �K�
Output for 5.4.0
bef5bd8127d5487db5ad340135d441d2 ����'�H}��45�A�
Output for 5.3.29
7fda2e20795342c3ae91a1d45ab2d78c �. ySBî���Z�׌
Output for 5.3.28
4daf4e09c11c47368f33f952abec2956 M�N �G6�3�R��)V
Output for 5.3.27
ca4bcca90ea14bf9b8490480aca6ea5c �K̩�K��I����\
Output for 5.3.26
1daa5b89597c499d92e666d36f701cb7 �[�Y|I���f�op�
Output for 5.3.25
76e69963e316491684d1eff33165a2dc v�c�I����1e��
Output for 5.3.24
69e78ca6522b4bbebb1d1baf85d2410c i猦R+K�����A
Output for 5.3.23
df912f3f5d5b40188f1db8bd7913bbd4 ߑ/?][@���y��
Output for 5.3.22
7379c5ed5a5941e19bc7200f7baba445 sy��ZYA�� {��E
Output for 5.3.21
ce53c32a2c6a40bcad05bf4b5b09ee78 �S�*,j@���K[ �x
Output for 5.3.20
36c47fadce5948c493bef9a942454ab0 6���YHē���BEJ�
Output for 5.3.19
034b5578791846ae9d573011a859ac58 KUxyF��W0�Y�X
Output for 5.3.18
c0c93657c03f48238875e1f94ef90499 ��6W�?H#�u�N��
Output for 5.3.17
3d2c611fc9354286b017771aa946d8e8 =,a�5B��w�F��
Output for 5.3.16
747fc23916da44878f4d78be323df5f8 t�9�D��Mx�2=��
Output for 5.3.15
e078f61a062e4f97bc20081d08a47bcf �x�5.3.15.O�� �{�
Output for 5.3.14
a26073c1160549c2b5f201ee1432f6ad �`s�Iµ��2��
Output for 5.3.13
0d452e614cb149918064749367fdbd8a E.aL�I��dt�g���
Output for 5.3.12
e6eacdc57bac4c6cb52ed3fd3d93ae70 ����{�Ll�.�=��p
Output for 5.3.11
e0e450d07f76449ebd6b0d21120d5ed2 ��P�vD��k ! ^�
Output for 5.3.10
f28c52fb2f48416da6340ba9d7caba1f �R�/HAm�4 ��ʺ
Output for 5.3.9
33c1db5d98a1402aa972c4e2dd58da0d 3��]��@*�r���X�
Output for 5.3.8
0dc600b2fa7740518992868d3e3bb9ee ���w@Q����>;��
Output for 5.3.7
8465435e460a41c7b7a726a39384b8c6 �eC^F AǷ�&�����
Output for 5.3.6
aef77fe979f5450fbdaf9de70dc148c8 ���y�E���� �H�
Output for 5.3.5
8180e07e6f1a412da70f44c9a1825bea ���~oA-�Dɡ�[�
Output for 5.3.4
3c4d0792777f4f048b4750892f79be97 <M1KV3K�wO�GP�/y��
Output for 5.3.3
01453ea4f0094e3996f18ecf4551ded5 E>�� N9���EQ��
Output for 5.3.2
0521cd1b11d44fa0ade2bc49ac87002f !��O���I��/
Output for 5.3.1
5cad913d9b7240c2b0093d85130c6893 \��=�r@° =� h�
Output for 5.3.0
ac2667d96d494bc78f62856b83829233 �&g�mIKǏb�k���3
Output for 5.2.17
874e0fab77994af2b9355c50f1ce0958 �N�w�J�5\P�� X
Output for 5.2.16
2afc9d96fb594ee4969c0bd8a6cc34b7 *����YN䖜 ئ�4�
Output for 5.2.15
26c0b6c3122e42bdae463819330a6277 &���.B��F83 bw
Output for 5.2.14
3a10629bc6ad4c4693677105626007c2 :b�ƭLF�gqb`1KV3K�
Output for 5.2.13
06b988cb0e4649ddab6a51bce21d9c24 5.2.13���FIݫjQ���$
Output for 5.2.12
6e346861c86140b08ff1a3b539d0dbe7 n4ha�a@���9���
Output for 5.2.11
61ce2a49843d495cb70b78b5891e69b3 a�*I�=I\� x��i�
Output for 5.2.10
5bd6618e9b88473ab2ecf2c32708ffbe [�a���G:����'��
Output for 5.2.9
8d18d77bdc0d4baebd72679c65162737 ��{� K��rg�e'7
Output for 5.2.8
6f0f76b08343469d81a2719e34c64379 ov��CF���q�4�Cy
Output for 5.2.7
e7ad569c77a44fa9abf9c0d523f572a2 �V�w�O�����#�r�
Output for 5.2.6
988d1a0f1ea74587be2c6d0ebc23d9d4 ���E��,m�#��
Output for 5.2.5
f207464d8a9a4ec89af4b70d420bfd1a �1KV3KFM��NȚ� B �
Output for 5.2.4
e937fd27d2df484f860124a00b7ee905 �7�'��HO�$� ~�
Output for 5.2.3
cc86c4247b554ef9a8f621edbebfe443 ̆�${UN���!��C
Output for 5.2.2
497f225a23634532a1c614d1c561495d I"Z#cE2����aI]
Output for 5.2.1
3faf3eac5cfd4797b59582e59b8de718 ?�>�\�G����囍�
Output for 5.2.0
8656d996fb54492b9ff775a6a58a3b92 �Vٖ�TI+��u���;�
Output for 5.1.6
b6fd25bfc1904fd6ae005bb875f267b5 ��%���O֮[�u�g�
Output for 5.1.5
b3a84f6c8cdd4037942b424ea3e53153 ��Ol��@7�+BN��1S
Output for 5.1.4
fe92e40aa27344e1b18269aaec3c598c ��� �sD᱂i��<Y�
Output for 5.1.3
6d178632319e4df7ab4f53b5a502ad57 m�21�M��OS���W
Output for 5.1.2
7ec292b9d1044105b4b85b92d1db4f38 ~’��A��[���O8
Output for 5.1.1
d725235fcc2f4333abe1bd194523f01c �%#_�/C3��E#�
Output for 5.1.0
26d895dc48074985863787948d49afac &ؕ�H1KV3KI��7���I��
Output for 5.0.5
98e22bc7115b469d9a113ccc3f6f5549 ��+�[F��<�?oUI
Output for 5.0.4
79ded797c3c8420fac1ddc9ea699ee53 y�ח��B�ܞ���S
Output for 5.0.3
5ad0a3abc40c49948b660e34e2a5f930 Z�� I��f4�0
Output for 5.0.2
7d0f8f072fe34792a740b50f0df159da }�1KV3K/�G��@� �Y�
Output for 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 22 050b886ef3f04c5392015d505e8d0b3dPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 23  �n��LS�]P^� =PHP_EOL
Output for 5.0.0
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 22 314bd03f59364a16b52ae97b89fd0b67PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 23 1K�?Y6J�*�{�� gPHP_EOL
Output for 4.4.9
5b0020d9380a41bb93123081bd95cf01 [ �8 A��0����
Output for 4.4.8
c2f41bdee95144e7b3720caa263ab5cf ����QD�r �&:��
Output for 4.4.7
af70dd7e98334f8c9f56c54c0a6c582d �p�~�3O��V�L lX-
Output for 4.4.6
0cf32e493296462fb31ee71e2a0f558e �.I2�F/��*U�
Output for 4.4.5
ab40d69de1eb4fa6a3e26d514ebd8093 �@֝��O���mQN���
Output for 4.4.4
386c203e78bb440b9ebdfe6096f17fd2 8l >x�D ���`���
Output for 4.4.3
99d1ebcf67b243a7b225a99dfe5309b5 ����g�C��%���S �
Output for 4.4.2
37829d30335244df84ad47c35127135e 7��03RD߄�G�Q'^
Output for 4.4.1
b6236f54124943a4967d121fe0bfc051 �#oTIC��}�Q
Output for 4.4.0
f66b53dde1e744ad95818593aac768a7 �kS���D�������h�
Output for 4.3.11
7e80111bf11945d1875c626b948c7872 ~��Eч\bk��xr
Output for 4.3.10
c6babd6d03d743ac9cf58aa3d93cf426 ƺ�m�C������<�&
Output for 4.3.9
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 22 32b0f6535625489a91aec2eeadae2802PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 23 2��SV%H����(PHP_EOL
Output for 4.3.8
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 22 7854734a43504fb39c05c5969eedf86bPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 23 xTsJCPO��Ŗ��kPHP_EOL
Output for 4.3.7
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 22 082eeafa2ea04fea83604dba12e65844PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 23 .�.�O�`M��XDPHP_EOL
Output for 4.3.6
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 22 c453ef50a3484b80856f975afd45bf43PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 23 �S�P�HK��o�Z�E�CPHP_EOL
Output for 4.3.5
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 22 2d5f361e2f3946458b9cc94050f98e4fPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 23 -_6/9FE���@P��OPHP_EOL
Output for 4.3.4
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 22 47d81d72595f438bbbb694829bcefc53PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 23 G�rY_C�������SPHP_EOL
Output for 4.3.3
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 22 9b76ee2bc27d4b88a92d6edc02a584caPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 23 �v�+�}K��-n����PHP_EOL
Output for 4.3.2
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 22 caf9abdcce17431c95a5b26b4d8aadd4PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 23 ����C���kM���PHP_EOL
Output for 4.3.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 22 189157b9eaff4388bd1e8ec7dbacc44ePHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 23 �W��C����۬�NPHP_EOL
Output for 4.3.0
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 22 7abf1a96f777401e8fb9825ea6f8405bPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/1KV3K on line 23 z���w@���^��@[PHP_EOL