3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $zzfile = random_bytes(100); var_dump($zzfile); $filename = basename($zzfile); var_dump(preg_match('#\.(.+)$#', $filename, $matches)); var_dump($matches);
based on 10iGa
Output for 7.2.0
string(100) "ϡDZ���Qwg��{A ��Xʣ�n�9a��aĿ�^���A���<'�vm]���r !��Gܭ�F�H�a`�Xq u�d�ʈ�[� �N� b��^�" int(0) array(0) { }
Output for 7.1.10
string(100) "�aRfY�� ��e �bS��t��:7�w$�f�@@�|�{|�c�p�F�u�.ƊJ������62xU�U�_�#`�zc�bD?�k��T/� {��F�C\�" int(0) array(0) { }
Output for 7.1.7
string(100) "V���i�s��b%W&0/�Yҏ�������6-e���F�dʺ^�9J��\���e��0]J��s��*��d�?*�cǦ�G�0��Ӻ|j0��g�(" int(0) array(0) { }
Output for 7.1.6
string(100) "h�;�]���"���_=t��B3�'=K��beT�C���z�>��E�Ѻ�#��;��]4zKF��Ŀ�Go F�v���T�%��������q�„�Qؔ��" int(0) array(0) { }
Output for 7.1.5
string(100) "a 1ny��\o�����X0���jO����0�JĿ*� �iĩ�ٷ�6E��������@|�g=�5�:�f�-���V�E+�`e!I����=�M�z�M�+F0�A" int(0) array(0) { }
Output for 7.1.0
string(100) "��:�l2�Y;Y�ʃ��m.g4�b������oW%{�Xt��u�� ��y���0��I��fdOd��c�#�$�c�; B��<��0Rk�D�.�N1�Vn��S0��M" int(1) array(2) { [0]=> string(16) ".�N1�Vn��S0��M" [1]=> string(15) "�N1�Vn��S0��M" }
Output for 7.0.20
string(100) "�w>�0|�ŌM�Jʬ��t�G�U�S�N���h�?1&�:��|�/�τ#�a�@��K6����ٻ3SHr��"|(�Bl7`�w"�y��:K� c�co�" int(0) array(0) { }
Output for 7.0.10
string(100) "'K�m\�n�tc zs[?o�t/6��<� �o�U�`�  r`��l2�IG����{��V� ����/Y3��I��^���߳��g�2�F8[��E" int(0) array(0) { }
Output for 7.0.9
string(100) "��kw�:ژ�}��� s�$��Ŷ�P���tW��iF��3�cb�u��n��?;�P����A��x�À5>��@(ٮ$zy�t箕r�y>Cp�n ]�}��@" int(0) array(0) { }
Output for 7.0.8
string(100) "�W�wG}�LxB�����q��ǎ/�쐢A��q�HqFɆ��@�[���(-Z�!F ���i�I��1* Ŏ�(>�� y�߯m��u��+��T�" int(0) array(0) { }
Output for 7.0.7
string(100) "cB."FbxF�}xҒ@� �_�s��L)jL��A�9���T�!���S�%V��=�lB+��r�}���B ��ւ����Q�{���B��&J]�ߤ;-" int(1) array(2) { [0]=> string(98) "."FbxF�}xҒ@� �_�s��L)jL��A�9���T�!���S�%V��=�lB+��r�}���B ��ւ����Q�{���B��&J]�ߤ;-" [1]=> string(97) ""FbxF�}xҒ@� �_�s��L)jL��A�9���T�!���S�%V��=�lB+��r�}���B ��ւ����Q�{���B��&J]�ߤ;-" }
Output for 7.0.6
string(100) "Cmro ��� zڄ'�T��G�u&H��]���c�oR���T��h�b��BS0%��Pl�"��V�o����-,G��]��m.��#�_c�<j�i" int(1) array(2) { [0]=> string(13) ".��#�_c�<j�i" [1]=> string(12) "��#�_c�<j�i" }
Output for 7.0.5
string(100) "]V��`�_������!C���Z�*�?~�Wj�J7��qOS8Ɋ5M��噲�l�e��Jِ�-R�a�T�1m�2y���f�(��롮M�'�qֈV,w+��" int(0) array(0) { }
Output for 7.0.4
string(100) "�=��mP�͡�RL.] eY�x��,��`P�m�Ez[��d;4�1P�b{�"*� �d�o+�݊�C���uz�R�?�cA�Ս�(\�cvkUv�H" int(1) array(2) { [0]=> string(86) ".] eY�x��,��`P�m�Ez[��d;4�1P�b{�"*� �d�o+�݊�C���uz�R�?�cA�Ս�(\�cvkUv�H" [1]=> string(85) "] eY�x��,��`P�m�Ez[��d;4�1P�b{�"*� �d�o+�݊�C���uz�R�?�cA�Ս�(\�cvkUv�H" }
Output for 7.0.3
string(100) "�W���ww��z�#�����X[5��5�`JT��>:��]�QƟu��鍓� �B ;7 ��r餣l��e懸u̟�-t�����<4�R��w[�" int(0) array(0) { }
Output for 7.0.2
string(100) "�/I~�-$����$� ��L��=��y ��.�ɜ��Ձ|�ɭ_�mF��;uy���D���� =���SЦET�L�EHq��T�WE�M{L�'c" int(1) array(2) { [0]=> string(65) ".�ɜ��Ձ|�ɭ_�mF��;uy���D���� =���SЦET�L�EHq��T�WE�M{L�'c" [1]=> string(64) "�ɜ��Ձ|�ɭ_�mF��;uy���D���� =���SЦET�L�EHq��T�WE�M{L�'c" }
Output for 7.0.1
string(100) "^��X�{�o0'/���˴=x��-f�"P�r�`M �ۀN���zT����=�6b�y��c�b�Er(n{ܰ�f����|�֒`�3wzz<'��lK\" int(0) array(0) { }
Output for 7.0.0
string(100) "$ �c��0�I����tG�xEt�:���)��$��tU!���=%�=C, �2ū@/TVRge��7�5����3��%p�'�s�Y�u������50CSgO" int(0) array(0) { }
Output for 5.5.0 - 5.6.28
Fatal error: Call to undefined function random_bytes() in /in/LFhfE on line 3
Process exited with code 255.