3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $length = 10; $bytes = openssl_random_pseudo_bytes($length * 2); var_dump($bytes);
Output for 7.1.0
string(20) "��y����w��vú�"
Output for 7.0.14
string(20) ".��� �3�6kTB���"
Output for 7.0.6
string(20) "U�fI'/��nծ ��X"
Output for 7.0.5
string(20) "���;M��V/s��ĽQ�"
Output for 7.0.4
string(20) "$��iI���hG�qGhCtk"
Output for 7.0.3
string(20) "v-M���(l�Z���m��3��"
Output for 7.0.2
string(20) "T�P9�|� �����W�K�]"
Output for 7.0.1
string(20) "��M"��@}��Ќ��mB/�D"
Output for 7.0.0
string(20) ":����{�C ��=Z��"
Output for 5.6.28
string(20) "^�>F����Mk�w^<"
Output for 5.6.21
string(20) "8�j� ���?��y�}"
Output for 5.6.20
string(20) "�dZ)���XX���+�f��*"
Output for 5.6.19
string(20) "� V�b�c�#���������"
Output for 5.6.18
string(20) "����PJчu�����P�"
Output for 5.6.17
string(20) "�t*f4�SAʄp�)�S�i麍"
Output for 5.6.16
string(20) ",������Y��e�tZ�ܤ"
Output for 5.6.15
string(20) "!��]��)��lmȒwP "
Output for 5.6.14
string(20) "�iXG �(��=B �<�a��"
Output for 5.6.13
string(20) "+)�,�X�^%J�\�v�Mڴ�"
Output for 5.6.12
string(20) "3��:��w����ͬ�YYz"
Output for 5.6.11
string(20) "�=��= $|ٲI�U%I�"
Output for 5.6.10
string(20) "e*K}]��p6q���w"
Output for 5.6.9
string(20) "���ɿ�lo��q+�"��f��"
Output for 5.6.8
string(20) "�� g�ʎ����-19f"
Output for 5.6.7
string(20) "F 3�h�V+\hv��� v�$"
Output for 5.5.35
string(20) "�����ũ\�h��2c�hO"
Output for 5.5.34
string(20) "ϥ�����`N �ʡ\[^�"
Output for 5.5.33
string(20) "u�_γAD�j%�G�AvM!"
Output for 5.5.32
string(20) ":8W�?H��7�r���b"
Output for 5.5.31
string(20) "��ڿ|������I$�1�XC"
Output for 5.5.30
string(20) "� g\�U�n����?ì�"
Output for 5.5.29
string(20) "�� �K�w��9Z�� ���"
Output for 5.5.28
string(20) "���c�:ܚ�s����Q� ��"
Output for 5.5.27
string(20) "�f��WqϹ��<�Ga��"
Output for 5.5.26
string(20) "�(���LJ��pN��:�"
Output for 5.5.25
string(20) "�����������z��"
Output for 5.5.24
string(20) "΅ ��"�>�a��u�b �H�"
Output for 5.4.45
string(20) "��+o2�;�R�l����0>WX"
Output for 5.4.44
string(20) "LO�<sypi�5k��2"
Output for 5.4.43
string(20) "�FM��[� �^ o���$"
Output for 5.4.42
string(20) "�0�����p{v߹�&N�N�"
Output for 5.4.41
string(20) "�NM��^g4���jT� r�"
Output for 5.4.40
string(20) "OuC���|[Vto����ءw"
Output for 5.4.39
string(20) "��x��,w�6\��R�P^�"
Output for 5.4.38
string(20) "r��[�o3���޻����b@�"
Output for 5.4.37
string(20) "�v�QZ��� ���ï#"
Output for 5.4.36
string(20) "P�bW�p��Aq���n���F"
Output for 5.4.35
string(20) "Lw�K+��Ey�6Ĩ�7��M"
Output for 5.4.34
string(20) " ɵ���#�g�%mK�-&�J"
Output for 5.0.0 - 5.4.32
Fatal error: Call to undefined function openssl_random_pseudo_bytes() in /in/KpJJc on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: openssl_random_pseudo_bytes() in /in/KpJJc on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: openssl_random_pseudo_bytes() in /in/KpJJc on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: openssl_random_pseudo_bytes() in /in/KpJJc on line 5