3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function stypr_encrypt($str){ $strings = $str; $MyKey = rand(1,1024); unset($tmp); for ($i = 0; $i < strlen($strings); $i++) { ++$n; $cal = ($n * $n) ^ hexdec("3E"); $tmp = $tmp . substr("00000".dechex(decoct(ord(substr($strings, $i, 1)) ^ ($MyKey ^ hexdec('AFE43') ^ hexdec('399AA3') ^ ($cal)))), -6); } $tmp = strtoupper(strrev(substr("000".dechex($MyKey ^ hexdec('BFF') ^ hexdec('D77D')), -4).$tmp)); return $tmp; } echo stypr_encrypt("pwning_the_phpreverse!");
based on tVEtk