3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $encodedSecret = "3d3d516343746d4d6d6c315669563362"; function encodeSecret($secret) { return bin2hex(strrev(base64_encode($secret))); } function decodeSecret($encodedSecret) { return base64_decode(strrev(hex2bin($encodedSecret))); } call_user_func('decodeSecret', $encodedSecret); if(array_key_exists("submit", $_POST)) { if(encodeSecret($_POST['secret']) == $encodedSecret) { print "Access granted. The password for natas9 is <censored>"; } else { print "Wrong secret"; } } ?>
Output for 5.4.0 - 7.1.0
Output for 5.0.0 - 5.3.29
Fatal error: Call to undefined function hex2bin() in /in/qapvt on line 8
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: hex2bin() in /in/qapvt on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: hex2bin() in /in/qapvt on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: hex2bin() in /in/qapvt on line 8