3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function encodeString($str) { for ($i = 0; $i < 5; ++$i) { $str = base64_decode(strrev($str)); } return $str; } var_dump(encodeString('=AFVxIkVWRWYSdlUhRVbwh1YqZkcUVVOhFGbWlXVtFDa')); var_dump(encodeString('=AFVxI1VrRWYSdlUhRVbwh1YqZkcUVVOhFGbWlXVtFDa')); var_dump(encodeString('==AUUFjQWZlWX10VSFmUtBnUWdkUzVlbOd3VGpleVxGZaZ1aKVlV650cidkRoRVb4plUxA3VWZFa0ImVaVlUtFDaW1Ge1Z1aJhnVGFUP')); var_dump(encodeString('==AUUFjQWZFZhJVbShlVrZlaTVEczZlbjVjVxIVWS1GcoZVbSZUWVx2cStWMLJFbSV1Yx82dVJDehFWMaRVVrpVaZZFczZ1aJhnVGFUP')); var_dump(encodeString('==AUUFjQWZlVLJVbSl1VthnUTVkWYRlVOBjVWpFMhZEaoV1MoRXVxQ2ViVEMwQmRkVlVxA3cZFjU3JmVKd3VqZ0VVFjSZZlM0gnVGFUP'));
based on fKK44
Output for 5.6.0 - 5.6.30, hhvm-3.12.14 - 3.22.0, 7.0.0 - 7.3.1
string(8) "password" string(9) "password1" string(20) "OncEFORTzoARedlatOsA" string(20) "MEMALICnAphOrmadAINe" string(20) "ngToRdSWeIDEnTINAObn"