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($secret){ return base64_decode(sstrev(hex2bin($secret))); } echo decodeSecret($encodedSecret); ?>
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function sstrev() in /in/OlYg3:8 Stack trace: #0 /in/OlYg3(11): decodeSecret('3d3d516343746d4...') #1 {main} thrown in /in/OlYg3 on line 8
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Fatal error: Call to undefined function sstrev() in /in/OlYg3 on line 8
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: sstrev() in /in/OlYg3 on line 8
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: sstrev() in /in/OlYg3 on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: sstrev() in /in/OlYg3 on line 8