3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $pwd = 'Hello World'; $key = "ª®µ4_ψ¶-(o)(o)-¼8ØaQφ"; $result = ""; $string = base64_decode($pwd); for ($i = 0; $i < strlen($string); $i++) { $char = substr($string, $i, 1); $keychar = substr($key, ($i % strlen($key)) - 1, 1); $char = chr(ord($char) - ord($keychar)); $result.=$char; } echo $result;
Output for 4.4.1 - 4.4.9, 5.1.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
�'�߼i�
Output for 4.3.0 - 4.4.0, 5.0.0 - 5.0.5
�'��7�#