3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $msg = 'say hi!'; $key = 'whatever_123'; // print, and make unprintable chars available for a link or alike. // using $_GET, php will urldecode it, if it was passed urlencoded print "obfuscated, ready for url: " . urlencode(obfuscate($msg, $key)) . "\n"; print "deObfuscated: " . obfuscate(obfuscate($msg, $key), $key); function obfuscate($msg, $key) { if (empty($key)) return $msg; return $msg ^ str_pad('', strlen($msg), $key); } ?>
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
obfuscated, ready for url: %04%09%18T%0D%1FD deObfuscated: say hi!
Output for hhvm-3.10.0

Process exited with code 153.