3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $key = "8d30f9d3083b4ce0b1967364b2c3e2ef"; $iv = substr("7f08e74a-cb86-454f-ad09-4f961feab9ea", 0, mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC)); $data = "4afc3e3d-bed1-42fd-85eb-06b8fbbc4925"; $enc = mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $key, $data, MCRYPT_MODE_CBC, $iv); echo $key."\n"; echo $iv."\n"; echo bin2hex($enc)."\n";
based on K9I72
Output for 7.0.6 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_get_iv_size() in /in/VakXl:3 Stack trace: #0 {main} thrown in /in/VakXl on line 3
Process exited with code 255.
Output for 5.4.10 - 5.5.34, 5.6.8 - 5.6.20, 7.0.0 - 7.0.5
8d30f9d3083b4ce0b1967364b2c3e2ef 7f08e74a-cb86-454f-ad09-4f961fea 50393b363cb5cce72a5bbf5fbed1925cb1feceea81e399b8287db2821463c771e20ba59848003f79bc1fbf174c4c16720954b82e970018894c4690f5bc55c287
Output for 5.3.20 - 5.3.29, 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_get_iv_size() in /in/VakXl on line 3
Process exited with code 255.