3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(bin2hex(random_bytes(32)), bin2hex(random_bytes(32)));
Output for 7.2.0
string(64) "298f3383c32e508292d06b0d6c9e22742633e82f5213c4971ede434991af069a" string(64) "11c33926e824c24afad8a0667517a8026905f79074517de10494c769e9c94740"
Output for 7.1.10
string(64) "ce8271cc0e7bc466a39dca7f22997867b560679afbd804eb86c5c9c04f93ba84" string(64) "3f5923b4dc2f39233a0e7e1bcc02d4dcf743a03700ae84f063a3156daae81a24"
Output for 7.1.7
string(64) "a4e689264aad62d0709d81b8804dd8beb424907f84f5b6e4f8ac81a56e8a252f" string(64) "2cf8432fded3563cde9dd8b4b601e16ab41369f0665aaceebb6bd4b4274cda57"
Output for 7.1.6
string(64) "7a24224b66da2f01a3500424bf1eda875e226ec8a3e8afcac8c86ee6899c9c0a" string(64) "ef2d6e09b316a6c39673676a050820d67665c60b096a2952df67b1f3a38f7e42"
Output for 7.1.5
string(64) "4a64f59959ab09bceb4cced424e352a3eae811e65d1fcc6aa7996a2b4628ecfe" string(64) "b8f96a607957694366bd6ddf972956a7b78b11fd93309b56b8b240f1afdc2aec"
Output for 7.1.0
string(64) "72a7fbea11108efccd6d69e10f3b1c7942e64ca4be4bae052043a6038e28ab6f" string(64) "5188b19b2c886e24e55562d80dd1783eaa3ba15a480858c59b89bf676aafa955"
Output for 7.0.20
string(64) "58f3c06c79fc6fc354ea4ae26b59b1cd2750bb16834028e016a3f36aaa70aa1f" string(64) "b3dcd43766c7cfe1487f9dd3a3b6d200f1ebfbdeaab0f33cbda2c8bdbb8331d5"
Output for 7.0.6
string(64) "b993b4776141835e7c65a4283a88c0075f40ebc6195037c0123e52700dd8dc13" string(64) "d78eada13c3539d41b51bd82232f24e849d2101756e261142e0eff3fb753107b"
Output for 7.0.5
string(64) "7f61d26ed00044d384a1e19b5d6c99f421b8489db406189a076c3cb2c4b300e6" string(64) "828e387a17b2d035c8e1ab07d028361f12ccb5f24654b6c8ad062c1ebfc963d1"
Output for 7.0.4
string(64) "986058a0c1ef4ec0c94d0e3a842d78025014e69ea26047667375a540ab83cca7" string(64) "132fe2001a785395b77b6f8b7f5be8eeb57629458fcf2dd71f31c320019dda6b"
Output for 7.0.3
string(64) "d3052bd75a9f592e27556dc323ed89e49fbb90ede0285bab1a87e900e4054b89" string(64) "961cb35a2550fad1e7be8d6a95bb50cb4346cd5613b18c8e48816eade05779a5"
Output for 7.0.2
string(64) "248b2682f431490862bdef8f5b97813ac08a9bbb793ef1dca67cec36a6a234c8" string(64) "4b646c788268155057ff15fcc576668e072d4ac9e7a85876c66bb606083e8d51"
Output for 7.0.1
string(64) "fe498fba22d6fed2706d27333c52a3d30f2d3f2fa62f279f4feb0a15b8c0685e" string(64) "e4c142df1ecccb1433bc0c87ccc2646f38b2a7beb41ada4046c17bc0b8618552"
Output for 7.0.0
string(64) "2fd6e0160d95a11fd56210a19ca8950f3484bd87bb740e20397208e71a9fc52e" string(64) "e6e116ae9a0c6e60671731cec962dda28389da0ba67429819489d9000f79f2f2"
Output for 5.3.18 - 5.6.28
Fatal error: Call to undefined function random_bytes() in /in/SX9X0 on line 3
Process exited with code 255.