3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(bin2hex(random_bytes(25))); var_dump(bin2hex(random_bytes(50)));
based on WtMge
Output for 7.2.6
string(50) "eafb6c4ad06313f3f1b217b99a2f58efa61e7ff887034b6977" string(100) "a4d4d7df7bfe7575f7e565d4b485672692b421120df404e63238fb86376529f759548ca2ff377d724cee96c5386598023cf3"
Output for 7.2.0
string(50) "7b6595d43affb6fef34cbd1f289c6d22d1dbfa17482b5835aa" string(100) "2887e6d6bcc401f7adc528ea8e777d2dc98725705f58f1d9a5875222ee42560cbbe838f09b08d9c4977b456b57c3c0736360"
Output for 7.1.20
string(50) "90dbf9b658af285e3faac85de1ec871742367b2ed438676861" string(100) "8b01fd5fc6976fe34bc60a7a913597ae2d457bbf30ac649a5a9a2176d21118d88777034baac11c42611dc2cafa867478f53a"
Output for 7.1.7
string(50) "a43cce3517c9f461318dff789a7bc632559c01fd677527946a" string(100) "a7f6f306307be5a95248cb869d101f7d88e8fc62e04c430366267dd23c73d2aa6f3afb39956250294edb730ce907ed2ccb56"
Output for 7.1.6
string(50) "b9e6dbaf4f956af27f8622dd261c33c338886212c3b1cf91e6" string(100) "f12990ee89cc36c15bf4b255fb9584d688a99f9d512622225e37eebd455166d984a539f16d50a227b09181a57c1573f97b6a"
Output for 7.1.5
string(50) "3bd7580fd3def0416ae796a1c8d05b959054963dd5452877de" string(100) "305c24ae0b236e142dd4928084e166dcde31367a6cb31a82305d00f383d4e53e086f321ee29152a6649d95f06f71aaae4f05"
Output for 7.1.4
string(50) "76267e32040d070b762be6fb04231c82e8005c3851f3d907a3" string(100) "4004e802ee4a83aa8940a53798562efbb56c5ded505bf8f141c8fb44726ea89612785c9deb47e66ae674ebf8718feeaf7bc1"
Output for 7.1.3
string(50) "97629f3b4ac8c7f89f288c80c9d7785ecbc7ef6786aec8b4de" string(100) "91d95bf3ccdc1c60c3f4cd914e642ffbb78ef4675bdf0a355ddc60ce57a56ee6785706ded0736b9e6d029f2d0d1d90d558cd"
Output for 7.1.2
string(50) "5b2fb3709189d31ecfd32b625f0ea367287e06b38bb926e4c1" string(100) "21f2d902300935fb2c4d97f17808c2ba6f7cab15a4d886cbc1e3882f30c651ffafd653699f55c334f91957b6b753ccbb2e16"
Output for 7.1.1
string(50) "2f6890dfe2e87c92e2e447d4d1e375429910bead89867096f9" string(100) "5addbafc14925f437d7b55b8e2ef6ba568e054184a41937f65cd351f419b7f450b1fb3771db459665bf4699217dd57d881f7"
Output for 7.1.0
string(50) "8740017146af40af3af4de40b223ce0db20cdbb20e3e253d17" string(100) "756a6b6a95eebc992e232df03782b933d408b828a998648e7d670de300d877b5b549105620ce996cc1d972f5869900af00da"
Output for 7.0.20
string(50) "0db3fe6f2a9c5155a93a0a89bf83266b83bcbe3616c855a60a" string(100) "fae2f61f1aa5a0c68775c9bfc38d2c883a59b70050882f7dbc3e2a7711ca880fbdb240c1831494f20d3e80ed6e60e449c3c8"
Output for 7.0.19
string(50) "4a14e5d6181ec5efb9e818fe74cef61d398557dd4c619d3ded" string(100) "d507dece95e9377104b6cb4b71c8e093780e266859484c7b373abf19ba6f1eead6689891bf9da933419741afd9777431373b"
Output for 7.0.18
string(50) "3caa050af5c1512178840b8b9da61cc76da51bfbeaac9e58ff" string(100) "700b8aea233a6509118a0837766689b0e9d7ca8793d9aa54eb63697ccaa439797b98bc33a2b7d1eb90a05f5b49a95112e167"
Output for 7.0.17
string(50) "867458a6b86a8b85266b271f75ba98eec898dfebc21e6bb121" string(100) "c16f10a9c1b7e070aec5751eec58504b14c9b48997145ab01b6cbf629a18bd656dc5929264866074a945f5bbc8840d47283a"
Output for 7.0.16
string(50) "f597e1480bdf3f547a9da2e62af271f12ab3dbb488455ade42" string(100) "ff1e4687b8369097a50aa7e6f31d1746dce9d3b38d6406ce8d2a1f88fc7d74ef52693fa3959d990e530230b8f712ad22b033"
Output for 7.0.15
string(50) "b4b3d29f38c95e84a0018117effcbf686b18a426d512ed4cac" string(100) "1adf95ca6af346693458c49005ecd93d89f00c2c97931025cc600c24491eb5be64f4b8cbf0541b589a0d3a1cf8d05f2066f3"
Output for 7.0.14
string(50) "50be4a11f351fba048373db96c12fddcdaea2cf26378cc9577" string(100) "ebbfc4b247d16e727e3c0e88e0fa37ba0663ad2c43a58244b2d0701d3eb7d32e8efd76a10827697f7d9da4f0a790589f8067"
Output for 7.0.13
string(50) "876868f71cd5c5e63aaada2c545c0ded489bc8d9e7b869f741" string(100) "f1ef90cf2063052ab7eedb564655e9f5b8b748b7dda5e48e95fe10f01c1b4c7fcaec099bc6e60961752434b89ad5c6f7310f"
Output for 7.0.12
string(50) "b69bcf90429f0c95c26dd0b0814625ed0b6de8064daf15b1c5" string(100) "fd4431443d7a6427aae0c958ec7b823d78e176fe8b4a522678239594a6228216109dd247a808871d13a8559ec096ea96265a"
Output for 7.0.11
string(50) "e50480282615792700c1f667bb78e35c8046710faedd80d685" string(100) "84f7faca91febe90f21c8bb8e00f15729da465adbdc45f3c1827ee8edb29ed366d8763242a5ff4a4497a5d0fd8381db3997d"
Output for 7.0.10
string(50) "3ddc421490207d0897c189ba412db5d915d7f348d675d3fa07" string(100) "9c3bd5646e81d39cde6cfcd5dc5de3c2eb16d8a1195f624c9f8c2d428dc213178fcb420bbd0d00756ccc22fb4f8e12dc3362"
Output for 7.0.9
string(50) "a16896c95b51769489d8491afe132e4ea55d153c095633784f" string(100) "2480e2003930879372453139d0e55f1695b81a5200a2950138da27aa1378fa180c928c27ceaaaad57a33db0a6c2c8b5f3541"
Output for 7.0.8
string(50) "357900cc884022c0e6be2a00a0094101231baf12b9c88961bd" string(100) "b145c9f32057c8fc985dd779ebed49dbd397bd06532e13bf3eee6bfc8ddadc431bf5660e92ee300858eb37f6a7606b433e5d"
Output for 7.0.7
string(50) "f0ac0a96c18806c618a38c74bcbe5ae3302b645f1cadafce52" string(100) "fc8804b6e234b790e044b553424882630bbf2e5a8182b5c6b8e564e7e08be77909f954e0aa51d7df8dce64215175b97cc2a2"
Output for 7.0.6
string(50) "6702c6001774abba166ec12c1ecf20d61d5a73b499f4ee6d35" string(100) "99f3b8cf075794d867f1e4d2291e0db50a5f21e15453f173d487cd1b89cacb5ffdfb85143ef5b4b286d320fa7e06bb1c8d2e"
Output for 7.0.5
string(50) "296744f6a2957d6f03b2ab795c6f7d8985ce50ee7d8a78ad30" string(100) "8264c9b937105840ed3b8d6de08bf43a0088f3bf5f9ec7dc7ba86c26f4d5c25d929e970c120ba043e68e06b1a489af58cb5b"
Output for 7.0.4
string(50) "11f50519ec96ff63194e3203958f41e5606d8654fab9a9bb00" string(100) "20323a601004cb91138c2db7d2c4c02d44f857f3d255182204577c175f0314874f6af468d80d7d606302365372621d50e489"
Output for 7.0.3
string(50) "96dadfdcbc5f79a9bf6b26ced626c782517b3eb4cf4e01406e" string(100) "8406d2ad99dd1d02af9e7a5414cf06c620b0ccdff85897add440a3876ba0d118506f867830f0a3e9eedb23ac9dbebcdb6ca7"
Output for 7.0.2
string(50) "eb93dfe0f3a34f6ac839c2350697d358c6f4b12f282812e666" string(100) "28a8b4e2c77c2c79073220bd757dad9f51ea89d51c48492625a3c4d1f81f6871f55e4d6c260d1a966a5aef11a0c036e29449"
Output for 7.0.1
string(50) "c9d509537424888edfa2afed9c3d02bae43f9d63b3558212b1" string(100) "ad59c5d6349539100f9247098d98d0b2f9ca82c5ca2767cd67c215016756b22d7ab4869324266a372c21855ff8d83106b2d3"
Output for 7.0.0
string(50) "3b8ff18aaee63ccd20877c0f74a25fa2c535b610dc5d7266b9" string(100) "ef0340e36b5bd109f1611dbbed7f0035b7035d4e48f5bf2ff0157f6f19902b0aaae8e78badceac29afa5e55846558a74a931"
Output for hhvm-3.17.3
string(50) "5ab184f05288b59587bec0a804ca3ca6ee6754ab237c668f56" string(100) "1b5fcb8deadcba8edbf78bf17ccd4dcc7975dd016c4470796c295206ed39bd695e6a9aed5174e17cf94ba261d5134b7c732d"
Output for hhvm-3.15.4
string(50) "a34d94247dca269d132744080e03d76910d5ae3b9762ddf871" string(100) "55ce477b093b2fd44f2e88c18efc857c3edd4994b9c63324d9728697e5836b0697e876b774e7082af11b47f3f013792ef4e5"
Output for hhvm-3.13.2
string(50) "34b78b1433aad435a8e07cdf8d5b78f94999ee7a212281cfc2" string(100) "1d2122b6217286607e6944b765843f7a2a821de29e04d8ccf93a2f6a658d291eb47158dcad8fa892eb4d0e5a6d0f3da3b1a4"
Output for hhvm-3.12.14
string(50) "8bd5ad89afc6c0510a81026eaacb275feea6600d1aaf333f14" string(100) "0c783aa96939ac115f08cf50289f86e370cfd12bf9c23ede3ebec3b95d84d3266883dfec3aa91f4e35b671a3b4d432f380ec"
Output for hhvm-3.11.1
string(50) "dfc81494c2df62ccabc2c4fb7a545341508bda9fb82723f413" string(100) "66c23b59af3def0d7c9f22f359438d2be794efe2e5cde321a3923854776997cf19186154ddf50fd20943a84a954695b8e3b9"
Output for 5.0.0 - 5.6.30, hhvm-3.10.1
Fatal error: Call to undefined function random_bytes() in /in/c833d on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: random_bytes() in /in/c833d on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: random_bytes() in /in/c833d on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: random_bytes() in /in/c833d on line 3