3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function wh_en($str, $pass) { $out = ''; $i = 0; while($i < strlen($str)) { $symb = base64_encode($str{$i}); $out .= $symb.$pass; $i += 1; } $out1 = base64_encode($out); $out = base64_encode($out1); return $out; } function wh_de($str, $pass) { $sf = base64_decode($str); $first = base64_decode($sf); if(strrpos($pass, $first) === $first) { return null; } else { str_replace($pass, '', $first); $second = explode('==', $first); $out = ''; $i = 0; while($i < count($second)) { $out .= base64_decode($second[$i].'=='); } return $out; } } $str = 'super89'; $pass = 'etpa'; $en = wh_en($str, $pass); $de = wh_de($en, $pass); echo $en.'<br><br>'.$de; ?>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0

Process exited with code 137.