3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function encodeSecret($secret) { return bin2hex(strrev(base64_encode($secret))); } function decodeSecret($secret) { // return bin2hex(strrev(base64_encode($secret))); return base64_decode(strrev(hex2bin($secret))); } print decodeSecret("3d3d516343746d4d6d6c315669563362") ?>
based on RGh9Q
Output for 5.6.0 - 7.3.0alpha1
oubWYf2kBq