3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo hash_pbkdf2('sha1', 'password123', openssl_random_pseudo_bytes(4), 1000, 0);
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.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
Fatal error: Uncaught Error: Call to undefined function openssl_random_pseudo_bytes() in /in/Nen3H:3 Stack trace: #0 {main} thrown in /in/Nen3H on line 3
Process exited with code 255.
Output for 7.1.7
5f2e69d4ec6e772797c18768aaf4f0dc1098213c
Output for 7.1.6
ec4cd0980d309a7b8f03dad3074cec6a42d9aa1d
Output for 7.1.5
bc2480530fc3fea3f995de51601aa181e338bffd
Output for 7.1.0
b6dc8c5ef12dd0172b56afb7128d71a85e0cb70f
Output for 7.0.20
9abf32bc1a7e733ac1e6dfc56f47656ffa44bd84
Output for 7.0.14
5f1e8a4d73d1fa32a85b9a25c6ba0e532d6a6317
Output for 7.0.11
f25853523fc6c23f582e3267f5f496c542bfcedd
Output for 7.0.10
932cdb9097ce2f0383eb86dd4bb8e66fa8326409
Output for 7.0.9
2c460507e7452daedacf883246b92a5afadaee57
Output for 7.0.8
095f4ba737cb80ce52f8fef3b87f5777c56ae612
Output for 7.0.7
c1ee82f5337026a0555d8479b25a9c54b64c2be3
Output for 7.0.6
6d122e953352c46d20715475f5508cb08a835d61
Output for 7.0.5
b872185ea9df7d79cf2027225d9116f3ee56d005
Output for 7.0.4
8ef6a4b6e600b8201c96892f8ef35b121ce59627
Output for 7.0.3
85f3302c7a75d49c1b9623f42e32cc8390cc778c
Output for 7.0.2
930d285a07031ed67b3838642c449788bca00622
Output for 7.0.1
52592f5c197bb484c7ac35d5fbcf9ff055e0900e
Output for 7.0.0
7309f4687d8397dd7a79dc4c72100be6acad6553
Output for 5.6.28
03a0cf72756e4dc90998d7dc8a589855777a2a69
Output for 5.6.26
615bc400419a95eeca5ec0f6001aa40be642cb7e
Output for 5.6.25
4f9a52d0491b1e2ba97289ca7112fb98f24aed03
Output for 5.6.24
99f7d5d6c505aa649a1be4af87c206ad279fa94c
Output for 5.6.23
938d1e4f8b9a7e8fe9c5323e2c486f649b6e74e8
Output for 5.6.22
89d42a04140d970cd8b5245357245328d02d891b
Output for 5.6.21
640e13272547b2b0b6b66e38a81cee524ebcf444
Output for 5.6.20
a97f347b71e5a3826b9f65296c68670529c6fc8d
Output for 5.6.19
01b7c576ce23b9d03004aa787a2279403c9e3ad8
Output for 5.6.18
bad807ae054a94bae2895b5ee39a8425dcb6f26f
Output for 5.6.17
66c5fad443fb11f00993d1c229bed7e830a334fc
Output for 5.6.16
f52632e2d0c72f8ecbc668055af492ca12b37a8e
Output for 5.6.15
b4148a7ebb3db5bebba4c9f28ee17f6b353b74bf
Output for 5.6.14
14b794a5a70af7fc67067db113e84f7511646517
Output for 5.6.13
e978029afb6cc46b4845cbf327cec215c92276f8
Output for 5.6.12
d17f422b4d8c6f41d14d56a722f22bcf89328141
Output for 5.6.11
c345373bac1588d8e4b5d553a19c56d71eae7093
Output for 5.6.10
7d8005e06b04e1b0118d5eeba8cb040922fa04f0
Output for 5.6.9
4b03477c77e072d5cdbee15716a311e742eea938
Output for 5.6.8
3671fdf73e02c4d8feef3330344419305a830687
Output for 5.6.7
ec0b2c3136b0f1ab4fc4c9667bd3f5183523ff59
Output for 5.6.6
8d0ce55ce82f0be363bcaad006624c3c1a31aac7
Output for 5.6.5
e86793c5128806e42816645a71a8aafa2c862187
Output for 5.6.4
078253842e759040025a547b4205fac7630c157d
Output for 5.6.3
ca541c51337516b6441d99f11ea88e65189c08d5
Output for 5.6.2
5aaadbef1850013855798664c23c0f80c10c3b45
Output for 5.6.1
fc2e0cfdf5b126e0b347f4640d3fd78882f0a521
Output for 5.6.0
062239f652619b6abd106d3e311acb7e95b04804
Output for 5.5.38
9d1d5b601df8268d5dc335173002685082c1dd8d
Output for 5.5.37
6d675008601219b857288b6f8a8e13beff67ff8f
Output for 5.5.36
7b61712126d6a85dfa94bb35bcd88852f1cb3454
Output for 5.5.35
5421c95db4b4369f8b614648883a1a9cdd955173
Output for 5.5.34
0175d79d597f00f61ad65896ec6076087a45ad32
Output for 5.5.33
05ca0ba8680d5b585fec10d367429efd9a25646f
Output for 5.5.32
46ffe92e690fb9e884fff6244827fd09f5aeaef0
Output for 5.5.31
73d7855df4a1a733ad27dd84eb507e7b51714246
Output for 5.5.30
cdff9dc348a94b914f720eea554e725c77cb449e
Output for 5.5.29
44bf23115ac27f262c6641dd5c9fe62e40fa9529
Output for 5.5.28
a9924c96b05a16ae9e1242965b32af04c8ef50f7
Output for 5.5.27
b4eb22dbc8ea6ba6a7a0f16a4cc985cb16299478
Output for 5.5.26
c98705d6a5fe5b210e4fd142cec620fa05cb70e0
Output for 5.5.25
cb724b953cc1c5ae5d0db5f4e7149a4c088f59b6
Output for 5.5.24
97328b7c77867987b792c54260802ee2b66f44c5
Output for 5.5.23
8f350510a115d7322b502422cbf9d1c617c61219
Output for 5.5.22
3eb4aff7e2c90f8443de0ffc8585252b8bf8ec8d
Output for 5.5.21
5422497ae89e39f5450cba7e7c8af1aebc61f7de
Output for 5.5.20
588ad7d91f53a1f6737920918923a435ab642a23
Output for 5.5.19
c022594169bff97a873b7180f3409fdc1478243f
Output for 5.5.18
07a97f58643ae193e0dfeeff37a096fb3283f96e
Output for 5.5.16
942dc8c480e8a6327c75ab8dfc8fce501fc7a9e1
Output for 5.5.15
724976b8f69cccfa77dacf269949b7801005ef83
Output for 5.5.14
fb4f771300191e57b6f15532f130dbe433a4e1eb
Output for 5.5.13
a83378fac2edfb227431c7a1ea538d9e9fedca21
Output for 5.5.12
ce555d967a31b18b0d1ca4136184e2e015683242
Output for 5.5.11
90f24adce5045e18030c209f985691b2442c68ad
Output for 5.5.10
9f056be04617c3991ee84051f29311a33939d807
Output for 5.5.9
acf7650efba039d177a1e70eac626a87b39498cd
Output for 5.5.8
9c6833a376ead3210dd13b026666aeaef72c57d2
Output for 5.5.7
38f670ea8cc94011771bd49c61902fccb3da095b
Output for 5.5.6
7f05aa218653151c260a60825e964c504c2bf516
Output for 5.5.5
e7b29065acae4890b1248183407624c7db1d4ddf
Output for 5.5.4
121a80b7fc607e71ae8c6f145b1f42148df858aa
Output for 5.5.3
2a3c4cb5b15ed595ce2da6010e99681acc9e29d8
Output for 5.5.2
16e5398fd518f4abc9b77ba23417b9b6a8946e77
Output for 5.5.1
6e873bf44081ab7bea05d56dde5401ce8d334881
Output for 5.5.0
ba9ab113615bd70b8593745c833773d9cdafc8a1
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.45
Fatal error: Call to undefined function hash_pbkdf2() in /in/Nen3H on line 3
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: hash_pbkdf2() in /in/Nen3H on line 3
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: hash_pbkdf2() in /in/Nen3H on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: hash_pbkdf2() in /in/Nen3H on line 3

preferences:
278.66 ms | 401 KiB | 372 Q