3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $result = sha256('hello'); $mutated = mutate($result); $unmutated = unmutate($mutated); echo "hello in sha256 is $result. Mutated it becomes $mutated, and when unmutated it is returned to $unmutated"); function mutate($hash) { return str_replace(['a', 'b', 'c', 'd', 'e', 'f'], ['f', 'e', 'd', 'c', 'b', 'a'], $hash); } function unmutate($hash) { return str_replace(['f', 'e', 'd', 'c', 'b', 'a'], ['a', 'b', 'c', 'd', 'e', 'f'], $hash); }
Output for 5.3.0 - 5.4.29
Parse error: syntax error, unexpected ')', expecting ',' or ';' in /in/nYg4G on line 9
Process exited with code 255.