3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function rmshash($toHash) { $hashArray = array(); $toHashARR = str_split($toHash); $toHash = base64_encode($toHash); for ($i = 0; $i < count($toHashARR); $i++) { $value = unpack('H*', $toHashARR[$i]); $hashArray[$i] = base_convert($value[1], 16, 2); } $odds = 1; $evens = 1; for ($k = 0; $k < count($hashArray); $k++) { if ($k % 2 == 1) { $odds = $odds * (int)$hashArray[$k]; } else { $evens = $evens * (int)$hashArray[$k]; } } $hash; $hash = ($odds + $evens) * ($odds + $evens) * ($odds + $evens); $hash = (($hash / $odds) * $evens); $hash = $hash / (count($hashArray) * $evens); $hash = strtolower((string)$hash); $hash = strtok($hash, 'e'); $hash = base64_encode($hash); $hash = $hash . $toHash; $hash = base64_encode($hash); $hash64Array = array(); $hash64ARR = str_split($hash); for ($l = 0; $l < count($hash64ARR); $l++) { $value2 = unpack('H*', $hash64ARR[$l]); $hash64Array[$l] = base_convert($value2[1], 16, 2); } $hash = 1; for ($m = 0; $m < count($hash64Array); $m++) { $hash = $hash * (int)$hash64Array[$m]; } $hash = $hash * abs(tan(count($hash64Array))); $hash = base64_encode($hash); $hash = substr($hash, 0, 32); return $hash; } print rmshash("test"); ?>
Output for 5.1.0 - 5.1.1, 5.1.3 - 7.1.0
MS4wMTA0OTQ3OTIwNDY4RSsyMzA=
Output for 5.1.2
SU5G
Output for 5.0.5
Notice: Undefined variable: hash in /in/PfV2v on line 19 MS4wMTA0OTQ3OTIwNDY4RSsyMzA=
Output for 5.0.4
Warning: unpack(): Type H: outside of string in /in/PfV2v on line 7 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 7 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 7 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 7 Notice: Undefined variable: hash in /in/PfV2v on line 19 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 MS4wMTA0OTQ3OTIwNDY4RSsyMzA=
Output for 5.0.3
Warning: unpack(): Type H: outside of string in /in/PfV2v on line 7 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 7 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 7 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 7 Notice: Undefined variable: hash in /in/PfV2v on line 19 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 Warning: unpack(): Type H: outside of string in /in/PfV2v on line 31 MS4wMTA0OTQ3OTIwNDY4RSsyMzA=
Output for 5.0.0 - 5.0.2
Notice: Undefined variable: hash in /in/PfV2v on line 19 MS4wMTA0OTQ3OTIwNDY4RSsyMzA=
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: str_split() in /in/PfV2v on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: str_split() in /in/PfV2v on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: str_split() in /in/PfV2v on line 4