3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function encrypt($str) { $cryptedstr = ""; for ($i =0; $i < strlen($str); $i++) { $temp = ord(substr($str,$i,1)) ^ 192; while(strlen($temp)<3) { $temp = "0".$temp; } $cryptedstr .= $temp. ""; } return base64_encode($cryptedstr); } echo(encrypt("Admin ' and 1 = 1 order by 6 -- ")); ?>
Output for 4.3.0 - 5.6.22, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
MTI5MTY0MTczMTY5MTc0MjI0MjMxMjI0MTYxMTc0MTY0MjI0MjQxMjI0MjUzMjI0MjQxMjI0MTc1MTc4MTY0MTY1MTc4MjI0MTYyMTg1MjI0MjQ2MjI0MjM3MjM3MjI0