3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = str_split(bin2hex(random_bytes(32)), 2); array_unshift($x, ''); echo implode('\\x', $x), "\n";
Output for 7.2.0
\x69\x7f\x82\xbc\x36\xa5\x91\xc4\x1c\xff\x6d\x61\x0c\x8d\x9b\x4a\xa5\x91\xf6\x7f\x71\xbe\x90\xc2\x0d\x54\x5c\x90\x36\x53\xc6\x7f
Output for 7.1.10
\x10\x83\x12\xa7\x5f\x47\x08\xbd\x48\xec\x75\xb4\xe3\xa3\x92\xa3\x90\xa5\x8b\x83\x56\x15\x29\x4f\x19\xce\x40\x58\xbc\x58\x70\xf9
Output for 7.1.7
\x61\x76\xbf\x4b\xcd\xe9\xb1\x9a\x89\x75\xa0\x30\x9e\x50\x2c\x18\x3e\x04\xc0\x51\x3e\xff\x6c\x77\x0a\x22\xfa\xf9\x48\x1d\x49\x78
Output for 7.1.6
\x10\x79\x24\xd7\x08\x3e\xb0\xe5\xa5\x78\x3e\x5a\xe8\x8a\x69\xe3\xa6\x58\x80\xb9\xdc\x5c\x7a\x80\x94\x34\x18\x7f\x1d\x70\x23\x19
Output for 7.1.5
\xa3\x37\x4f\xad\x5e\x90\x6a\x14\x0e\x5d\x34\x48\x35\x00\xb7\x72\x7c\x61\xf2\xa1\xcc\x1d\xd4\xa2\xb7\x78\x4f\x12\x82\x84\x65\x88
Output for 7.1.0
\x4f\xf3\x61\xd8\xb5\xf7\xea\x70\xe1\x4f\x1f\x28\xa7\x08\xc3\xac\x3a\xd5\x26\xc9\x6f\x42\xad\x00\xc2\x52\x4d\xfa\x0e\x2b\xe2\x48
Output for 7.0.20
\x1b\xae\x45\x67\x5b\xb1\x9d\x60\xcf\xcb\x75\xd8\x61\x62\x26\x06\x1e\xf3\xa5\x57\x49\x75\xa7\xa0\x56\x88\xb4\x1f\x9d\xa1\x53\x97
Output for 7.0.6
\x22\x08\xb9\xb7\x49\x3b\x55\x77\xa8\x3b\x6b\x00\x55\x97\x51\x47\x52\xb1\x2f\x38\xcc\x77\x68\x19\x8f\xdb\x33\x99\x80\x3f\x5b\x99
Output for 7.0.5
\xa6\x0f\xcb\xf2\xf1\x4c\x8d\x8f\x52\xa5\xcc\xc8\x1e\xcd\x06\x30\x33\x4d\xe3\x0e\xf8\x4c\xc9\x88\x43\x42\x00\x40\x68\x14\x38\x50
Output for 7.0.4
\x3a\xf4\x92\x49\xdb\x84\xd9\xc7\xf6\xa9\xfb\x88\xff\xe6\x49\x42\x69\xcf\xc2\x80\x6f\x11\x7a\x86\x01\x13\x20\x82\xe4\x54\x41\xe2
Output for 7.0.3
\x0f\x93\xeb\x93\x7c\x86\xb8\xd9\x34\xe8\x88\x40\xb6\x01\xad\x88\xbe\xa5\x3a\xc3\x8c\x0b\x04\xc0\xf6\x00\x9c\xf8\xc9\xb9\xcc\xcd
Output for 7.0.2
\xb2\x32\xc9\xa3\xf1\xd4\x14\x60\xfc\xc3\xc7\xae\x77\x33\x01\xd5\x6c\x03\xae\x2f\x0d\xe4\xbe\x97\x53\x53\xa3\x11\xec\xab\x2e\x5a
Output for 7.0.1
\x2a\x4a\xc9\x0a\x81\x01\x63\xfc\x43\x6d\xba\x81\x19\x8a\x7b\xfd\x83\xe2\xb7\x07\x0d\x60\xcb\x86\x91\x75\x53\x32\xac\x91\x45\xfb
Output for 7.0.0
\x4f\xb7\x99\xfa\x5f\x6a\xee\xe4\x34\x22\x96\xf8\xd4\x92\x67\xa0\x3e\xe6\xc6\x53\xdf\x6c\xef\xc9\x43\xe4\xe8\x0d\xbf\x01\x02\xd8
Output for 5.3.18 - 5.6.28
Fatal error: Call to undefined function random_bytes() in /in/L0UT9 on line 3
Process exited with code 255.