3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $zzfile = random_bytes(101); var_dump($zzfile); $filename = basename($zzfile); var_dump(preg_match('#\.(.+)$#', $filename, $matches)); var_dump($matches);
based on LFhfE
Output for 7.2.0
string(101) "��qް�^�ꘆ3��i ��ܕk}7��M�������8�N�ss!�kȂ�ȓ���5*;->Rg)��;�-�@&��\�Q#P������l��i�)bu��" int(0) array(0) { }
Output for 7.1.10
string(101) "����&�}]�nQ��'��XM���b�@l9��.ܴj$� %�cl ��l�f�'] V��L�G�xX��Jm�ma7�3�.TS.�{r C�<��" int(1) array(2) { [0]=> string(62) ".ܴj$� %�cl ��l�f�'] V��L�G�xX��Jm�ma7�3�.TS.�{r C�<��" [1]=> string(61) "ܴj$� %�cl ��l�f�'] V��L�G�xX��Jm�ma7�3�.TS.�{r C�<��" }
Output for 7.1.7
string(101) "G��S�$wFFђ�F�mfщ:�x����嫅&�e��<�ص�in-7�}��?�Aг#\i�%i;�D7E t�a� B�C�f;����h���|�TY�q" int(0) array(0) { }
Output for 7.1.6
string(101) "��O���FQЂ u7f���B_U��~s��6�Jq͗�:�w��B\�>�D q����lS��lLі�܁�J�mX������vE��/r#p���5�" int(0) array(0) { }
Output for 7.1.5
string(101) "�ћ�9�O�ҍ�}�a�v5�:��h�S�W���'b�B����.mx��j@��t/��Ҏ��T8u�U�+��z��q���٢�W���" int(0) array(0) { }
Output for 7.1.0
string(101) "�Y2X^�C�EuGWq�D�hP'��= ZD���Z��5i�SX�#��`޳Q�U*���.���1��Հo�{Q�:��h40���� �����һ�~$��" int(1) array(2) { [0]=> string(41) ".���1��Հo�{Q�:��h40���� �����һ�~$��" [1]=> string(40) "���1��Հo�{Q�:��h40���� �����һ�~$��" }
Output for 7.0.20
string(101) "�-L'�R��d��щ�a�׎�b�O2"|��k��y���������� Y��E 6�[|¯���į��[�$�6shBs�K8aa'���:|N" int(0) array(0) { }
Output for 7.0.6
string(101) "��}�y�%�#�@;0�3�tғA�2�� ۻ�y��H!pi�4(c*R�D����/� ���]P#�Y�fD�?Fc�,�u&>�[ј����e@�R" int(0) array(0) { }
Output for 7.0.5
string(101) ";'��}�W7��˅�1Ef>��~�\��!Қ1���|�a���yX.��y�Ʋ���Ѯ#`�&ǎ�L�\O�4<I�#VFz�P&x����$��U� " int(1) array(2) { [0]=> string(53) ".��y�Ʋ���Ѯ#`�&ǎ�L�\O�4<I�#VFz�P&x����$��U� " [1]=> string(52) "��y�Ʋ���Ѯ#`�&ǎ�L�\O�4<I�#VFz�P&x����$��U� " }
Output for 7.0.4
string(101) "hr���x��J��m3n����/�2)ܸ�P�\��6G�>ݎ�e�dg����,܆� �ה/h)@5� �r����NÜb�J�n�B�)���2��Q" int(0) array(0) { }
Output for 7.0.3
string(101) "�;��׆�2�p�_��� �5��pM-�Z�nG���v �{�8�(�Y����TU�� �j��S� ��m��m��3��@הȲ�9C�[�ȡ��a��e?��" int(0) array(0) { }
Output for 7.0.2
string(101) "�6@׫��D����s��ԏ���?�k�,��t�_3܌gg��ȡI^�m�Y�w��� (1wc��C��o�{�@0�|���9�W�C ���(����� a\m" int(0) array(0) { }
Output for 7.0.1
string(101) "I���R��Kn�>�UB�� I�;v�e"�R��,/�'����X3�t�pɵ4���[�� h�<xh����{�l�q�nsm��m�, arN" int(0) array(0) { }
Output for 7.0.0
string(101) "X��}��0C�z�"㫺����@�#NٶF5�ª�Wm:�����)�� 1��f�)� [`�xe�o&�*��}31 �S����t�3�����" int(0) array(0) { }
Output for 5.3.21 - 5.6.28
Fatal error: Call to undefined function random_bytes() in /in/nKCEm on line 3
Process exited with code 255.