3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<? $encodedSecret = "3d3d516343746d4d6d6c315669563362"; $secret = "1"; /*echo bin2hex(strrev(base64_encode($secret))); */ $encodedSecret = "3d3d514d3d3d516343746d4d6d6c315669563362"; $encodedSecret = hex2bin($encodedSecret,16,2); $encodedSecret = strrev($encodedSecret); $encodedSecret = base64_decode($encodedSecret); echo $encodedSecret; ?>
Output for 5.4.0 - 7.1.0
Warning: hex2bin() expects exactly 1 parameter, 3 given in /in/sgNLP on line 10
Output for 4.3.0 - 5.3.29
<? $encodedSecret = "3d3d516343746d4d6d6c315669563362"; $secret = "1"; /*echo bin2hex(strrev(base64_encode($secret))); */ $encodedSecret = "3d3d514d3d3d516343746d4d6d6c315669563362"; $encodedSecret = hex2bin($encodedSecret,16,2); $encodedSecret = strrev($encodedSecret); $encodedSecret = base64_decode($encodedSecret); echo $encodedSecret; ?>