3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function removeExtraCharacters($key) { $str = ""; $i = 0; while ($i < strlen($key)) { if (strpos($str, $key[$i]) === false) { $str .= $key[$i]; } $i++; } return $str; } function saveDataFormatMessage($data,$key) { $j = 0; $key = removeExtraCharacters($key); $str = $data.""; $rtn = ""; while ($j < strlen($str)) { $rtn .= substr($key,$str[$j],1); $j++; } return $rtn; } function showDataValueMessage($data,$key) { $j = 0; $key = removeExtraCharacters($key); $rtn = ""; while ($j < strlen($data)) { $rtn .= strpos($key,$data[$j]).""; $j++; } return $rtn; } echo saveDataFormatMessage(985651278,md5(""))."\n"; echo showDataValueMessage("2b9f9410b",md5(""));
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
2b9f9410b 985651278
Output for hhvm-3.10.0

Process exited with code 153.