3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bin = openssl_random_pseudo_bytes(8); $hex = bin2hex($bin); echo $hex; ?>
Output for 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Fatal error: Uncaught Error: Call to undefined function openssl_random_pseudo_bytes() in /in/LAvFn:2 Stack trace: #0 {main} thrown in /in/LAvFn on line 2
Process exited with code 255.
Output for 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Fatal error: Uncaught Error: Call to undefined function openssl_random_pseudo_bytes() in /in/LAvFn:2 Stack trace: #0 {main} thrown in /in/LAvFn on line 2
Process exited with code 255.
Output for 7.1.7
903ed3379e87af63
Output for 7.1.6
6be8500d99090356
Output for 7.1.5
29676da2536afdbf
Output for 7.1.0
577a523ba1d826d8
Output for 7.0.20
ac1372518b7cc684
Output for 7.0.14
5d06df8744d7b6a1
Output for 7.0.6
9fad6214ff974fe3
Output for 7.0.5
334c0ac514ac9b93
Output for 7.0.4
e0966d8906a2d036
Output for 7.0.3
f2198685038f4103
Output for 7.0.2
86d21a5541e78fbd
Output for 7.0.1
2f45cd49befdd50f
Output for 7.0.0
bae521e538e17866
Output for 5.6.28
c7c9aab5778dfd6e
Output for 5.6.21
88ade804cf443b31
Output for 5.6.20
10beebc7849a63d1
Output for 5.6.19
6dd63d767282b9ef
Output for 5.6.18
50d855a2ddd4bd5e
Output for 5.6.17
5e3a943c8fd6e040
Output for 5.6.16
3282bcfd68f1276a
Output for 5.6.15
d5b543d979cb46d2
Output for 5.6.14
771e00a96ee4d5f1
Output for 5.6.13
c8af64b9af6acce1
Output for 5.6.12
14a750c3401d58bc
Output for 5.6.11
eada8f07b0073707
Output for 5.6.10
4c7b447c9585a9ad
Output for 5.6.9
c72b7d86388f2166
Output for 5.6.8
b01537c7303eca24
Output for 5.6.7
9d12837220f761fc
Output for 5.5.35
7d1d6fd61b7d0fcd
Output for 5.5.34
70c0efd11e61ed48
Output for 5.5.33
c143f0f09a270470
Output for 5.5.32
901b2f6b4af7f41f
Output for 5.5.31
e8586a76fb913d3f
Output for 5.5.30
d1c7574e0e74d710
Output for 5.5.29
0dc6afb55c6c839a
Output for 5.5.28
2a2785d1e3fba7b1
Output for 5.5.27
c649aed2bdea3c42
Output for 5.5.26
49c0269fdc1eae33
Output for 5.5.25
7cd759b3968fba98
Output for 5.5.24
35f720107ccd6841
Output for 5.4.45
1b19eca7f8f8bfee
Output for 5.4.44
7b1c0a53965b974b
Output for 5.4.43
df4c62a30d41f8b4
Output for 5.4.42
862c5b21259327d6
Output for 5.4.41
0e24c7ec25d416cc
Output for 5.4.40
9efaeb3f4ba69e3a
Output for 5.4.39
e2d59bee5fd0290f
Output for 5.4.38
612e1df29f9fde81
Output for 5.4.37
6cb710cb5edbedd9
Output for 5.4.36
eb0dd7e1bc9bd2d4
Output for 5.4.35
08eba77ff6862cb1
Output for 5.4.34
694888f177fcd6a2
Output for 5.4.32
9b1b14b1c908ce10
Output for 5.4.31
6c94237df2e98974
Output for 5.4.30
5db0a8b72156798e
Output for 5.4.29
c6cd3b82e6655f88
Output for 5.4.28
3647b54feac5adb4
Output for 5.4.27
7fb600402e1edeb5
Output for 5.4.26
9ec57cc43e65b558
Output for 5.4.25
aae983414f65d6d6
Output for 5.4.24
fc3f900404c3cfc9
Output for 5.4.23
c1b1d55bc0776918
Output for 5.4.22
3361f33a6a149a18
Output for 5.4.21
8e04a09ad7ca97f4
Output for 5.4.20
466d2de2d1197227
Output for 5.4.19
e053fc8ccc6516bc
Output for 5.4.18
d2b261d00041ea4b
Output for 5.4.17
df395bbc17a37e33
Output for 5.4.16
6a22236510702e8b
Output for 5.4.15
624408f7f1ed7d97
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.14
Fatal error: Call to undefined function openssl_random_pseudo_bytes() in /in/LAvFn on line 2
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/LAvFn on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
Fatal error: Call to undefined function: openssl_random_pseudo_bytes() in /in/LAvFn on line 2
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/LAvFn on line 2

preferences:
269.84 ms | 401 KiB | 325 Q