3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit, rfc.property-hooks
MS4wMTA0OTQ3OTIwNDY4RSsyMzA=

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
37.23 ms | 401 KiB | 8 Q