3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $wtf = openssl_random_pseudo_bytes ( 5 , $cryptoStrong ); var_dump(bin2hex($wtf), $cryptoStrong);
Output for 7.1.0
string(10) "09a3657fcd" bool(true)
Output for 7.0.14
string(10) "188510e569" bool(true)
Output for 7.0.10
string(10) "df18fc12e5" bool(true)
Output for 7.0.9
string(10) "dfb9b31bcc" bool(true)
Output for 7.0.8
string(10) "ee0fa09755" bool(true)
Output for 7.0.7
string(10) "791ad1adbb" bool(true)
Output for 7.0.6
string(10) "7bbceac5a4" bool(true)
Output for 7.0.5
string(10) "5f3bf12cf1" bool(true)
Output for 7.0.4
string(10) "ff1965f6e4" bool(true)
Output for 7.0.3
string(10) "709b38fb53" bool(true)
Output for 7.0.2
string(10) "7e50c39590" bool(true)
Output for 7.0.1
string(10) "b4d2537082" bool(true)
Output for 7.0.0
string(10) "f9b482e0b8" bool(true)
Output for 5.6.28
string(10) "a064b09019" bool(true)
Output for 5.6.25
string(10) "8915d6c7e9" bool(true)
Output for 5.6.24
string(10) "69c4f4d628" bool(true)
Output for 5.6.23
string(10) "184c9b01ba" bool(true)
Output for 5.6.22
string(10) "9fcdb292e6" bool(true)
Output for 5.6.21
string(10) "ef646452af" bool(true)
Output for 5.6.20
string(10) "4621c1ff9b" bool(true)
Output for 5.6.19
string(10) "86a68efc34" bool(true)
Output for 5.6.18
string(10) "50910f0854" bool(true)
Output for 5.6.17
string(10) "4e6247a424" bool(true)
Output for 5.6.16
string(10) "25e04b2197" bool(true)
Output for 5.6.15
string(10) "5fab343c06" bool(true)
Output for 5.6.14
string(10) "da56412f0a" bool(true)
Output for 5.6.13
string(10) "897764826f" bool(true)
Output for 5.6.12
string(10) "8be2095b38" bool(true)
Output for 5.6.11
string(10) "c119612e68" bool(true)
Output for 5.6.10
string(10) "04ce2ab248" bool(true)
Output for 5.6.9
string(10) "298e7bc20c" bool(true)
Output for 5.6.8
string(10) "b4bb445cfc" bool(true)
Output for 5.6.7
string(10) "1095ce53fc" bool(true)
Output for 5.6.6
string(10) "4cde26335d" bool(true)
Output for 5.6.5
string(10) "9a0b7d42d9" bool(true)
Output for 5.6.4
string(10) "a757d70cd2" bool(true)
Output for 5.6.3
string(10) "8d762fea64" bool(true)
Output for 5.6.2
string(10) "5ef761979b" bool(true)
Output for 5.6.1
string(10) "fcbc8b1074" bool(true)
Output for 5.6.0
string(10) "d646161d91" bool(true)
Output for 5.5.38
string(10) "9d7b661ce9" bool(true)
Output for 5.5.37
string(10) "e02630fdcd" bool(true)
Output for 5.5.36
string(10) "3089cbaeab" bool(true)
Output for 5.5.35
string(10) "4804fcf11b" bool(true)
Output for 5.5.34
string(10) "42e6e67e34" bool(true)
Output for 5.5.33
string(10) "c1c16597cf" bool(true)
Output for 5.5.32
string(10) "0617c831e3" bool(true)
Output for 5.5.31
string(10) "ae570db52c" bool(true)
Output for 5.5.30
string(10) "a719b78033" bool(true)
Output for 5.5.29
string(10) "a195c02494" bool(true)
Output for 5.5.28
string(10) "76547d7bb0" bool(true)
Output for 5.5.27
string(10) "f8da5e0baa" bool(true)
Output for 5.5.26
string(10) "bf1d918308" bool(true)
Output for 5.5.25
string(10) "74b3038a6d" bool(true)
Output for 5.5.24
string(10) "78621befe9" bool(true)
Output for 5.5.23
string(10) "02b65a1b36" bool(true)
Output for 5.5.22
string(10) "25860b18de" bool(true)
Output for 5.5.21
string(10) "63bd5bbea4" bool(true)
Output for 5.5.20
string(10) "0c312eb422" bool(true)
Output for 5.5.19
string(10) "5be9734757" bool(true)
Output for 5.5.18
string(10) "84ef81ced5" bool(true)
Output for 5.5.16
string(10) "ff5c4d1f4c" bool(true)
Output for 5.5.15
string(10) "1b48ab08e1" bool(true)
Output for 5.5.14
string(10) "497b0bc839" bool(true)
Output for 5.5.13
string(10) "3386508d63" bool(true)
Output for 5.5.12
string(10) "e3a0ac324b" bool(true)
Output for 5.5.11
string(10) "0c51733a25" bool(true)
Output for 5.5.10
string(10) "058f848b8e" bool(true)
Output for 5.5.9
string(10) "9545ef6b8a" bool(true)
Output for 5.5.8
string(10) "388cf39030" bool(true)
Output for 5.5.7
string(10) "58ccdfeb25" bool(true)
Output for 5.5.6
string(10) "ee5a4caf44" bool(true)
Output for 5.5.5
string(10) "886343a0e7" bool(true)
Output for 5.5.4
string(10) "f540026eb5" bool(true)
Output for 5.5.3
string(10) "c78b9316bc" bool(true)
Output for 5.5.2
string(10) "be921f8656" bool(true)
Output for 5.5.1
string(10) "3166ab91bf" bool(true)
Output for 5.5.0
string(10) "772cb1077e" bool(true)
Output for 5.4.45
string(10) "bb9e187d54" bool(true)
Output for 5.4.44
string(10) "bd27090d1c" bool(true)
Output for 5.4.43
string(10) "820f181535" bool(true)
Output for 5.4.42
string(10) "c2ae9ed9c7" bool(true)
Output for 5.4.41
string(10) "2b091d82f8" bool(true)
Output for 5.4.40
string(10) "2833c88749" bool(true)
Output for 5.4.39
string(10) "2411616b4a" bool(true)
Output for 5.4.38
string(10) "d94efc1fd2" bool(true)
Output for 5.4.37
string(10) "e863cc44e7" bool(true)
Output for 5.4.36
string(10) "92c0e1a787" bool(true)
Output for 5.4.35
string(10) "480bdb76eb" bool(true)
Output for 5.4.34
string(10) "7a717fa45c" bool(true)
Output for 5.4.32
string(10) "c849a67266" bool(true)
Output for 5.4.31
string(10) "3ddb99aea3" bool(true)
Output for 5.4.30
string(10) "07ecedbdf4" bool(true)
Output for 5.4.29
string(10) "962ad6c1d3" bool(true)
Output for 5.4.28
string(10) "c04951694b" bool(true)
Output for 5.4.27
string(10) "3650c4c56b" bool(true)
Output for 5.4.26
string(10) "dd607e60e7" bool(true)
Output for 5.4.25
string(10) "2137e84636" bool(true)
Output for 5.4.24
string(10) "ba1d65f29d" bool(true)
Output for 5.4.23
string(10) "16e06e3c63" bool(true)
Output for 5.4.22
string(10) "dd15ad5b8f" bool(true)
Output for 5.4.21
string(10) "0041516b49" bool(true)
Output for 5.4.20
string(10) "dfc46d4585" bool(true)
Output for 5.4.19
string(10) "5a7b978fcf" bool(true)
Output for 5.4.18
string(10) "010a4d2a94" bool(true)
Output for 5.4.17
string(10) "5c685182bd" bool(true)
Output for 5.4.16
string(10) "bbeac86ec9" bool(true)
Output for 5.4.15
string(10) "a684b6943b" bool(true)
Output for 5.0.0 - 5.4.14
Fatal error: Call to undefined function openssl_random_pseudo_bytes() in /in/12S10 on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: openssl_random_pseudo_bytes() in /in/12S10 on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: openssl_random_pseudo_bytes() in /in/12S10 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: openssl_random_pseudo_bytes() in /in/12S10 on line 3