3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /in/rHCkv on line 6
Process exited with code 255.
Output for rfc.property-hooks
Parse error: syntax error, unexpected token "{", expecting ")" in /in/rHCkv on line 6
Process exited with code 255.

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.6 ms | 401 KiB | 8 Q