3v4l.org

run code in 300+ PHP versions simultaneously
<?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; } stypr_encrypt("pwning_the_phpreverse!");
Output for 5.0.4 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.31, 7.3.0 - 7.3.19, 7.4.0 - 7.4.7
Notice: Undefined variable: n in /in/tVEtk on line 9 Notice: Undefined variable: tmp in /in/tVEtk on line 11
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.3
Notice: Undefined variable: n in /in/tVEtk on line 9 Notice: Undefined variable: tmp in /in/tVEtk on line 11

preferences:
239.58 ms | 402 KiB | 342 Q