3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $key = "8d30f9d3-083b-4ce0-b196-7364b2c3e2ef"; $iv = mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC), MCRYPT_RAND); $data = substr("4afc3e3d-bed1-42fd-85eb-06b8fbbc4925", 0, mcrypt_get_key_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC)); $enc = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $data, MCRYPT_MODE_CBC, $iv); echo bin2hex($iv)."\n"; echo bin2hex($enc)."\n";
based on 1hA6v
Output for 7.0.6 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_create_iv() in /in/g6MK5:3 Stack trace: #0 {main} thrown in /in/g6MK5 on line 3
Process exited with code 255.
Output for 7.0.5
Warning: mcrypt_encrypt(): Key of size 36 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/g6MK5 on line 5 a9a2389bb5a06693a029674eee3d24a8aa2d9ff124f79739f4493ccb6f5b240e
Output for 7.0.4
Warning: mcrypt_encrypt(): Key of size 36 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/g6MK5 on line 5 46d04cbd64202e2a634fc709c7dcfb49eb50f83a3d2bd42d4ead97e2a53f1688
Output for 7.0.3
Warning: mcrypt_encrypt(): Key of size 36 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/g6MK5 on line 5 3d87831a5798faa83d8f3d280979521e493a464e442cafe68927667931eed423
Output for 7.0.2
Warning: mcrypt_encrypt(): Key of size 36 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/g6MK5 on line 5 7c2b5e36e2da82c4da8e7eaf5ac1233e274b04d8fb2aae44430fe8a6f90fc146
Output for 7.0.1
Warning: mcrypt_encrypt(): Key of size 36 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/g6MK5 on line 5 3783a7c8bf352d23b72c02eb6c204e8ef1cd5b2dea546d024aa78a9d9ecd256d
Output for 7.0.0
Warning: mcrypt_encrypt(): Key of size 36 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/g6MK5 on line 5 875d8f16a356de0e13c241caa49248e0fc30a226af9cabe12ee518d6d4c37470
Output for 5.3.20 - 5.3.29, 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_create_iv() in /in/g6MK5 on line 3
Process exited with code 255.
Output for 5.6.20
Warning: mcrypt_encrypt(): Key of size 36 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/g6MK5 on line 5 c7b7bec45aaf01520ba93b15b1c99b8cb14a9fb52ea41db893a22017cc17f702
Output for 5.6.19
Warning: mcrypt_encrypt(): Key of size 36 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/g6MK5 on line 5 9d0c5fb13a78ba25481c5332d825cd7301e73a3602b8e782b975799062e428eb
Output for 5.6.18
Warning: mcrypt_encrypt(): Key of size 36 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/g6MK5 on line 5 37f33e171cdfe63dd4bbaa7e374bf2e01d730c5f10a8596f144c72645a92491f
Output for 5.6.17
Warning: mcrypt_encrypt(): Key of size 36 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/g6MK5 on line 5 7ef56ba85edcb194bb467c6f12bea47d1ffd01b7f03c5546b06a127e4f2afbd4
Output for 5.6.16
Warning: mcrypt_encrypt(): Key of size 36 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/g6MK5 on line 5 1446b1e48aa9aca5298ec9d0a1a477c1d48e6708547d697caf093409d7dc672f
Output for 5.6.15
Warning: mcrypt_encrypt(): Key of size 36 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/g6MK5 on line 5 bf66631dce030cdaf8a15796fa97f9cf8a23e48b6b49267ba2e10a95383e0ea2
Output for 5.6.14
Warning: mcrypt_encrypt(): Key of size 36 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/g6MK5 on line 5 172a34fda19f69bad3b695bdf027414b310eef839d751535019d1610b841b118
Output for 5.6.13
Warning: mcrypt_encrypt(): Key of size 36 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/g6MK5 on line 5 b74ca7d0e2cc4721b807eca74642230f33d5a7b79f6acb6a6ccbbd98d684cee6
Output for 5.6.12
Warning: mcrypt_encrypt(): Key of size 36 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/g6MK5 on line 5 04632162e870b21f6f82642371aa84ea1b3e5706be51b3ab0c1a41a41864b2a0
Output for 5.6.11
Warning: mcrypt_encrypt(): Key of size 36 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/g6MK5 on line 5 ed51384f0ee7502e4efeba6733f6ded843bc64327fcf5dfac4f2ed44987e929e
Output for 5.6.10
Warning: mcrypt_encrypt(): Key of size 36 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/g6MK5 on line 5 1bb4f17275353ed90c15b5746834ad59da8d39e31f6716c78d10d315ac9617a8
Output for 5.6.9
Warning: mcrypt_encrypt(): Key of size 36 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/g6MK5 on line 5 203fca84fbb4fcea1316e64f38d751cbbc5f986508c12eea23c12f2f4463d59b
Output for 5.6.8
Warning: mcrypt_encrypt(): Key of size 36 not supported by this algorithm. Only keys of sizes 16, 24 or 32 supported in /in/g6MK5 on line 5 8aef5c8607e285f3c2b20b7077bac87e9242b5447f3527096bc0229291dc4f04
Output for 5.5.34
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 85162e04c862d7f5714142b55fa00bdfe0110530214f0685c72e48f63475eb80 8ae89f5507320790afe5cf9a376c3b44d542afe3455cb2ac3546444a6996437d
Output for 5.5.33
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 2631f07975946819005ce68f1a697289655948c4225113b75bfc593f9b0841ab 7a23bf3734ee53f73ff3ed70fd10f8c5e08579b0c0e9fa9957ed9de87279a340
Output for 5.5.32
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 874d1ddac90dcac9b95248aa7b31baae825f448bc1cc16d341f3508eb4d933ac aa2cde08858699e82dd4d16db5cf196f5a8b8971c92609e82b61db8d0a0cd08a
Output for 5.5.31
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 92c7111436bae3fa609e3217023d92131a725500a7a4cb78a45f9dc292e0e67d 474121153d672ab5a093d56076edc8b62714970f65b4db66d0b8b9f1b92f2518
Output for 5.5.30
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 f7e39870a69bb8dfb8281de5f6d9a5585f8f1f53ce205afe4c397373aa5dce86 d3f91c79185f3e18db5ed057af083a5710c468c79784649aac31993f5ca49145
Output for 5.5.29
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 9b4e3febf76b525e26267bb33497165ae191eaf66b47f5e4d29237a79048cbaf 6f45a6bdaa44ec71d189d349b41bab70d82b56a0d212177bd393cd8a733a11cc
Output for 5.5.28
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 6a521d2c3131caa61d718f7c1441c7718e8c03d4d7237905de8a0ff3a779873e 947a66eae7b3ebd709d3991761df66c3c724a630a959cbc3323fadc6f6285b77
Output for 5.5.27
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 52da38cb340280e93b8f25be035ce1839678166570e2b65be398b1a2a4373585 0771a8e268e6cfd676eda748132203516501d5a100335598526476cdc7cb78b7
Output for 5.5.26
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 8f3793d4d3bf8577e8f2081a9e2d303e1884548f6fa5dd1309d83a781ee548ba 24c794160bfa2f6db4d49f3aa99c6cd0afda96601f9bdf3f374973f1a774c0c8
Output for 5.5.25
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 3d6ae8b78138fc6a6d586fc28099745e7db890a778b97692cf070ac6082e2a85 85b2942acff7c6733f901ad9312554530d5758f8ce96f021c01241a9aafbf0b8
Output for 5.5.24
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 38e036fea1c913956600228a5cd6e93f939b2d37ef4434f056a586f6620b5c39 86dc508298cd7ff6bec58c1a4121265fefa956e80073516b6bd24733dc0a2117
Output for 5.4.45
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 4330206211c031d5cf5352341b91a20488e565a61376108716a03d2eaa5cc6df d38dbc8aa55fe1adde1f09dd4e408ab9360e6cae8fabd729fb0b0338b7e37824
Output for 5.4.44
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 a37e6e9dd5c3af515d190a06bc37441cd250f66af3b5048aa39a2f2dab177605 f0892f197f5cce3cfcfd07fc93d1cebadf15fea4e386214421ab0551058998d8
Output for 5.4.43
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 673bc37f61bc39f3df60e16291644ac2e2741ab9c0af40f8e5d06eae0ae05de7 c151f21c335bdbdd767503f51707bcfbed2f4b0f3ccb1bc2f10781ba4512b47b
Output for 5.4.42
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 5216e0f1037d1e9ca44a670fc6c18a715a58431f7ebf2b032ddfceee58127b5f 898656c32538dacf36e0d1a39c75495798493d2963deb0b5f011da4194bc7af4
Output for 5.4.41
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 7de90e1c4784fb6461549439d18d7e73243f242412b762b455dfca34491ed460 ea3e0763349d4fa8d177dda5a65891394459f92c36105fdd81bcf1e9d230f540
Output for 5.4.40
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 7a64626a589fb5c4cfe24ee48e490875b2d6ef9bb7f4f5e57c91834424ecb40f 53722b89f23446dbdc55de65198c2cbfbf66e17539603b879281e8b78f812786
Output for 5.4.39
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 a4c3e8771a971afb82a359179aa8ef3ff677a3d17f748261d5d71033b934092d 6423fcb5267e8d73fa2c4d4d1b1a331655c673098f4385497b93d98495bd05f1
Output for 5.4.38
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 2ba8b4c8cf9712f94ad582c159a56f212af9bba296e94cc7013f76b5da385062 0343dc7539d196d3a5cf53f9e1b424661285e10bb1f2103da203bcfc4be21987
Output for 5.4.37
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 194e334f9d4cd1a680d7c5c1f136fb640a80dddabfbc5a282bc3fcd68b50f6c9 cdb2c9987b811f1ca42d84609252c3e94d43aac4bc016f5c92e68f1e417c7505
Output for 5.4.36
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 78821807aa9db474f521306ef374bf2bdae8cfe53382877b68e01efc4ee50471 ccd585d11a054a2562cbb58905eb2ba75eeb6cd372abd6526f109218c7ccadfe
Output for 5.4.35
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 848ad46cfcf5ea5fa1b4b5656c0a07e4301a54eeeae80717577ffa7fc2ab9a17 ea096b771643f07e9ff0e194f7a8db12f7c50d9c7378c86a7e07165cd5927261
Output for 5.4.34
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 e7d2cc8b34af58413f35761d06dbc9e127385c9d6302db9e0c335ce1d768925c 00801d2d2232b848fc71542f457b34f703ae9501f55c50e29c24179652b84466
Output for 5.4.32
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 dcc8132feffab2a97ad8cf04bdbaf64c6c7aa804cb7cf42c88c22190417854ad 76aa3f4431b01db4aeb1b497d70c50f79042985962d3a2f707c1b9494b1b51d2
Output for 5.4.31
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 0567398230d41111565edf59e5b775203866383538533038aa18ccede8bd9c82 359a8c9760b0b9eda3d42275fcedbc3180e149c04d7774ff4870307b76e5038a
Output for 5.4.30
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 7828e2b5f2a73486e7c0517e9712b38be58a695cc2301f723aa499204c781bc1 a0c2af6226e7da1d6f1b62a8b4f628fa24bb8368503498dfc02bc7084b715816
Output for 5.4.29
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 c94f0f85cd69bbe38a25a8b05b3be5bead27dbacce94dab3c0e43ba03881ed43 c22cb10e09f388dd9adf3b8d152303e1d6436e718dc9ae3ae858923b92b347bb
Output for 5.4.28
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 0ca7863f906558003056c48616734c0bbfa8e347f1a7bbb3099019a134fe51cc 733f22973d8a720671758088aea772e02dafce5ff99b1c8820338452c15e174a
Output for 5.4.27
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 1bbe7087b654fb82cc56d9402cd9a5a6b661cd948a7834e968d383d2ee0dd592 adf29b79e534dfbddfe7b916d35b06837e5a97683fbb16798e95010c7561e568
Output for 5.4.26
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 65a796a3182e8102d2d2e43a683aa6df5f68ab3daf853c8d50e1909f0c977fc0 ac51b44842f49aff59abd47c1ea53a6113b22c7b9c3daf2d82ca8f1242dea28a
Output for 5.4.25
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 7dc9a8518e7304afa1a42d69db656ffed26f10b2d62cb22449358373eae3842b bf4b87580349d4bed5c9f3612aad042963a94545198416dd060956984a5859ad
Output for 5.4.24
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 0de81cd56f32bf8c38b6dff32c633dc1348158c91e40b05b8971de0b298f4637 65de274d43ab22206f5f17cbe35abb46df0427d7c3579b082800da1b18a09c5d
Output for 5.4.23
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 5d91fa2c7393e6c5662399d6782f3beef7a1661b9a8f7853dae125b868e63830 fd97f91793e4dc185a17fcdfb85ca2f724242a3aabf69878691f9cbf53f9f28b
Output for 5.4.22
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 b554394d78cf558ec8862f25cbe67cdd0c2fe0a7efb3185a7c5934b8f57ec068 d00fb463c670e16eb90e20af0c615b0c461a65672955632e10d439c0f4a2ba82
Output for 5.4.21
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 39204a76137878c37008876049221ebde26c340b3432a7a1327ffa163ab942c2 4620c14f42c07e0a79e8e4707bcccf7f6210b07f866b5481bc61b4830a515b93
Output for 5.4.20
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 a0afb27ac99f8cdc6bceecba6a3cd59d30ae7535e8faaef5a8f0a8e4acf88c26 4985768309387401515c2dcd87aac56c18718e9fb574d23bd362d3bc2077601c
Output for 5.4.19
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 d46c71fa972b3775df10d8155ddfcff93163108b37014f56464fefa8dc0ac1d8 10fcd55abd2baa4be93c7e77d682c65f274a6810830b59a0dfa854f08cf0f95e
Output for 5.4.18
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 41e345aa7258f1c4083859f7aab88fd9d7040a7945e2514b0b726f2e5888a096 4e7cfc962d24b49265146d18f682cbb9d42d53a3c13c432875c0d53ac27e66f2
Output for 5.4.17
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 49c6e319833743a6d9e075a87b39da6f851d04a9a8c9a6e17b7cc67a7eb20230 4b2b7b1564da31fbefae980b620272a17f6c8758bd5d8b39380f5d1e443eb349
Output for 5.4.16
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 5877119472711ef9e69e7b4cae861fd1e9c4bb03bd40dfaeed3d12cff9b62ac2 f051d58208b5cf7df168e074d821dec5f348f67567e4076e6451ddf98324d488
Output for 5.4.15
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 a91209eb103f0d4a598fb76c12c124b660dcd6c35da4ead6d7631bbc3001a8bd e0a1eaed02978b88d8f2f44dda310a77e3948a419422fe69fb96ecf675cdd5c0
Output for 5.4.14
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 1fcda994ded59ce396c98f019adfb173ba5e8c8ddb41664ee084547c87e72389 82cc85ca597715d5f56b383703eccb942e84d16662384fedc798083a11b6c74a
Output for 5.4.13
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 8a9e5daa48664135aeb0c504bc11f40cda989266f01779cd5d8106473c3cd3df e7d1e18af0bdba58b33500917bfc494b4d5973da5206f6bef5137bb28b9f3993
Output for 5.4.12
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 f3ed836a977e7477a35fd40c326932c5e8317586eb91325804389bae5ada2c89 2984c7e195b1eec2f6a7f260cbe9c3013a027bb09186b1fc4514e3558955c89a
Output for 5.4.11
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 57b06132f00abf77e379fd54f5dcc7d03d530a73625cf8dd1db488671c9c0424 56f85d9edf04658945d63f9ead323bf536676c46bf071fd1abf3ac41d4cc14a8
Output for 5.4.10
Warning: mcrypt_encrypt(): Size of key is too large for this algorithm in /in/g6MK5 on line 5 610c5bbd0aac84887492ec3bb688e2082467210a525494e6086773c1cb1ce8a3 ffdee1c3c2b7885cb535def661eb182198833f3005f06cfa994a50b261b4cf57