3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $randomData = mcrypt_create_iv(20, MCRYPT_DEV_URANDOM); if ($randomData !== false && strlen($randomData) === 20) { echo bin2hex($randomData); }
based on FXe6q
Output for 7.0.6 - 7.2.6
Fatal error: Uncaught Error: Call to undefined function mcrypt_create_iv() in /in/dh4km:3 Stack trace: #0 {main} thrown in /in/dh4km on line 3
Process exited with code 255.
Output for 7.0.5
3cb0746fb58fa4d052495055d5820a12c7dfcff8
Output for 7.0.4
b780b6fb7f62261b166893cf448d014073515640
Output for 7.0.3
53eaf9455bcd55f3450a7a61592e2b6836c2e452
Output for 7.0.2
dfd1bb7d74af64b924697ec0ba1649c978bdc5d4
Output for 7.0.1
be980e936f111ab0527e75a11f821731c3f15095
Output for 7.0.0
b4638f1bb788f53c520ad73bd91bf9a06a741cef
Output for 5.3.19 - 5.3.29, 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_create_iv() in /in/dh4km on line 3
Process exited with code 255.
Output for 5.6.20
a6dcf7e140140fc1ac6e9f215ff90ea61bf03c70
Output for 5.6.19
a30933cfc0ef8a3c3a155f34304fe02b7ba394ec
Output for 5.6.18
278ace1175a7b7b780e4d0cbc33cbfcf657d130b
Output for 5.6.17
7dcf16781d0a824128dbf1d58c622425372b0292
Output for 5.6.16
20938c457e1f54c15658ec2cdc514002068ee23c
Output for 5.6.15
693b49392699577581843436d355c4964dc41f18
Output for 5.6.14
3b6ffde600460c1ecc50fc9a60cc70c76e18da6e
Output for 5.6.13
936df8eaa7f56a023ed04b810b70ffd864dfb8ce
Output for 5.6.12
efaae4731aad8a67e50ccc60c63e640d74f9b246
Output for 5.6.11
535d1160581a4b006567023229cf7111b935f929
Output for 5.6.10
6079dbc15fb9ed7026e9ec94a7e10ffde0ef93d2
Output for 5.6.9
368c9b72a843b3c0417d3965c384663bd7b2c479
Output for 5.6.8
c90903632858ab1e5b6aecaa29fa03742609d6a0
Output for 5.5.34
cb5f51e21c21b2435ecddd7097ada4c7aebefc21
Output for 5.5.33
d98b11dfe908c1fec4e80f89db8fb2aebd8957ce
Output for 5.5.32
b631e79c9f40327bb534553469e3885b63e4525a
Output for 5.5.31
a01a17eb4b4374a17ee43481ebba8334ac8b379c
Output for 5.5.30
a46338d2a2a14cc54d2960088ccd14c1b1aad3b4
Output for 5.5.29
6284ffd200216cb75659d2e1655ba7ca0dd1c967
Output for 5.5.28
1933d57899041abe4189e004d9412fd91cd4c6ca
Output for 5.5.27
aac1cac63910fda68e5e0aecbfb3d1011a5ed17a
Output for 5.5.26
17aadae0dc699c7df6feb56b009036d97195bbcd
Output for 5.5.25
a930430b1bffcff6ad9f0107597c1fb387a7665f
Output for 5.5.24
1e48ece06097071258f64965fba1e182cd172bc3
Output for 5.4.45
023436ef5073d879d254926ef2c9f2f4383ea86a
Output for 5.4.44
4d491c99ea6cb10dd8050c05b6b0ea3ac6dc60d7
Output for 5.4.43
6ea4b42f926e1d6091a428e1d2d2adfaf094bcdc
Output for 5.4.42
7db9df61487c50b14114b1da1a8def260592f744
Output for 5.4.41
1d75b5c3b9a53c6ffc3fd3719b2f69e17f8a9ba4
Output for 5.4.40
ab550f64107cf2bd31f8b0c4b2e90f7cc808b161
Output for 5.4.39
2afb01129aa1f0476f9eaac7c01b66100af8fd7c
Output for 5.4.38
a283e3b5b1ec81325f6a9da292a24d2524caabda
Output for 5.4.37
4ca140fee27dad9f97a07e60f4315b3c28927320
Output for 5.4.36
a3831d8d1024c3d659555be31612b40636988185
Output for 5.4.35
2d6286c462fb91673693ebc85e8708a791f16998
Output for 5.4.34
8d42b4de95bdb4e0c3aa832fa5de3faf0732280b
Output for 5.4.32
2a24fe4ded289ecbfec635d5c4e4eb9ab632136b
Output for 5.4.31
9f857fe17750e48d9303c26e9db53334867ce92b
Output for 5.4.30
d81f2b7324757dc0f7788a8eb909f9847916d10c
Output for 5.4.29
ceb722b489ade0ad171f6b7dfbafe2025bdf8513
Output for 5.4.28
5924eb5d53337cc3f24d3ffe14cb815718a843e3
Output for 5.4.27
0414c487bbfb341cb39d601f56a4bfa8b20a8802
Output for 5.4.26
e1401ec5ddf0b24f719d464b7d8e74c37ac66803
Output for 5.4.25
6c7f0b9f6af4a70091cadf7eff63c5564ad0ad0c
Output for 5.4.24
5481e42d1b33e4949bbfff13eae4f6f86316df96
Output for 5.4.23
995c4e87b5998401e3ee6bad5e4a85c519bcfa17
Output for 5.4.22
d6c7140556d0b164899d947834486d56d5295aca
Output for 5.4.21
da51c647bf197af87ea968edae4017adcaa11f6b
Output for 5.4.20
dd11aaafe09e621574e4c7c4c3fdd9d790248066
Output for 5.4.19
f9025ce9965bf6cd9e981ef9946406c2d3b31aa1
Output for 5.4.18
e570b464975eac56e0a463bfa62083fac4a45086
Output for 5.4.17
be61f44adf46bca7f67ce4adb43ef704c04762d4
Output for 5.4.16
aabe4eed94741d01b4da1ad084be3a185450ebc3
Output for 5.4.15
e08c455ff1e6e55cf6b96555b9eca7d74cc41ae1
Output for 5.4.14
0b0a82845b18925fda6bfd91716aed0e5dd2ea1d
Output for 5.4.13
e79fc1ed003a8a3f056550baa7be75e089f03f05
Output for 5.4.12
7182038e8218e062ed6a97537bd0b064572990a8
Output for 5.4.11
f1db035a1b8b78b0aa3a170b4016fa21a42bba16
Output for 5.4.10
ef27353d95bfb8d8287e8a2d6e45228733ce00fa
Output for 5.4.9
503751a7c207c69774aa13e94472f805c40fc357
Output for 5.4.8
8b25283758ce54b2098d88e9a7ec4c7f0bd555d9
Output for 5.4.7
20115d9c1e917e2948709eca6d581368bbe1c509
Output for 5.4.6
6fd52d16e04decd58ea783b5c4a8dcbcede4ba2b
Output for 5.4.5
44200e10e9a8b7b9112f7da7b73f17d875bf6cce
Output for 5.4.4
ef0fac2d46b40b91a3628ddeadde95394e885548
Output for 5.4.3
df6225ef2d05e09dc74c287188b3d3524dfc5021
Output for 5.4.2
66907a1f879c7996fcb8c0de17857f0c0bb612ea
Output for 5.4.1
a54043f0a5648ee3a94a4d6331c54f8bfb33a029
Output for 5.4.0
e25d15388d808469d4b6e188332dc668e80382c0