3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(random_bytes('4'));
based on QppU7
Output for 7.2.0
string(4) "Fxd"
Output for 7.1.10
string(4) "�R�W"
Output for 7.1.7
string(4) "4�D�"
Output for 7.1.6
string(4) "���"
Output for 7.1.5
string(4) "���4"
Output for 7.1.0
string(4) "���""
Output for 7.0.20
string(4) "S��"
Output for 7.0.6
string(4) "�Y��"
Output for 7.0.5
string(4) "w��h"
Output for 7.0.4
string(4) "ڱ�6"
Output for 7.0.3
string(4) "���"
Output for 7.0.2
string(4) "m)��"
Output for 7.0.1
string(4) "��3P"
Output for 7.0.0
string(4) "|�k"
Output for 5.3.19 - 5.6.28
Fatal error: Call to undefined function random_bytes() in /in/iWPnu on line 3
Process exited with code 255.