3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(bin2hex(random_bytes(32))); var_dump(bin2hex(random_bytes(32)));
based on vE5LR
Output for 7.2.0
string(64) "b9062140e37a6a7d4c72fa476ee7aacde82626e77aeb35c5de81b2f5583d0666" string(64) "06406d2d88bc47f1897b07cf013695efd2d26c56a001a712f664adfe0e100470"
Output for 7.1.10
string(64) "8feb52ceb76824a6222bb2769a95276453e3c5e5e350c5678a326abfbe46a3ff" string(64) "971266c9127949b4cbf124f68d4fa9a8d24432834025bae71ba1488009e3f781"
Output for 7.1.7
string(64) "9878edd5bf82faf1d8c4b672c33e7999cf91b3db3662c0d9fe89e85e9bc31555" string(64) "5c4f9d7980997348d4c77343175cff5542f19a15759cdf16e3bcedc654f2ec9e"
Output for 7.1.6
string(64) "8801111801e4ffa3c1bddfbd9c2815e1f63f83d4545c7d98478ecaeb396b3f00" string(64) "cf31dfd083538ff323f2fa400610dfc432b85e97053e7a4c7c5166c7d5133799"
Output for 7.1.5
string(64) "dfb4e3e13bba0fabeb1188e351d81c84dcba0fe959a291143181690fa8abc338" string(64) "bdc46e9a4ec5891f1bbb16bc3313d56a9a24ae5007b664cdd73c6450e31acf53"
Output for 7.1.0
string(64) "1308a208dd3c79bcf229ee2b5399496675e3c86eefd0bd036542dc9000ee0f7c" string(64) "6743f8bcc6fc3009a3addec94c1d49f0939ce606f6c9d1a6091b1f9c55ac3848"
Output for 7.0.20
string(64) "ba9cd13d3d490a2f4b23f7a1afd9dd35f7760c05939f1dbdca59a5bf6efaa0fc" string(64) "d92ff2eb751709a38e65cddce3280d087673187513560197e3fadd03a0e585c7"
Output for 7.0.6
string(64) "7c7ccd9a3969e5023c1047805db7be3561248be4f0dea877a60f025d9209cf19" string(64) "ad3f7ba6fa2e583747fc9ceb1edce15c7dac578848eb5ea1e68a77926a6dcbc4"
Output for 7.0.5
string(64) "e01da914c45707db24b90ad78efbe01c7e2361c28747fb8ac354b66358ce818b" string(64) "5c17cef0d76f92970db54cd87627ea6d1692cfc553d4095e32357c2dea6df8af"
Output for 7.0.4
string(64) "b7fd70925768b30eb4223c16c8e981fcd5afcae5adc62af16c349cafb110023e" string(64) "1553e64aed35a1cf565a67c4e78cf76b975b809e27bc505b2f996bfe6773a7ea"
Output for 7.0.3
string(64) "47005f02ec2f31666d1104d59e4bc966649471ee56fcc76a1cda8309e33c9e5d" string(64) "738e62de63c81d2c49b0e6c3dae08b2c5bb8d9b87829d120ca5dbf22296959e8"
Output for 7.0.2
string(64) "c8f925f8d4de1d429b55e84a3a55cc14fa457763932351d0d5fd6411f44d4215" string(64) "f8ec00f78fc8af2a2c94db74e910179f1ef0e252920c3c7be121b30801c2cf03"
Output for 7.0.1
string(64) "3e2220668cdc0a5c9362d0458e1279db21bac80e663e81e78f6f7b5f47056654" string(64) "aa3b56faaec322f102e6235222de4273cea04d746a39f70f46ad33b0ea4d1d6a"
Output for 7.0.0
string(64) "24c681829677de85db8e085692fce473019d0088bcc48e9b0585a4145324ab33" string(64) "b1f64bb841e08223f0229017233a1bc2721648359524d66cbf54ba1e0064c24a"
Output for 5.3.19 - 5.6.28
Fatal error: Call to undefined function random_bytes() in /in/PhHAG on line 3
Process exited with code 255.