3v4l.org

run code in 300+ PHP versions simultaneously
<?php function decodeSecret($secret) { return base64_decode(strrev(hex2bin($secret))); } function encodeSecret($secret) { return bin2hex(strrev(base64_encode($secret))); } //$secret = "3d3d516343746d4d6d6c315669563362"; echo base64_decode(strrev(hex2bin('3d3d516343746d4d6d6c315669563362'))); //echo $s2 = base64_decode($secret); //echo $s3 = strrev($s2); //echo hex2bin($s3); echo "\n----------\n"; echo encodeSecret("TEST");
Output for git.master, git.master_jit, rfc.property-hooks
oubWYf2kBq ---------- 3d3d415654564556

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:
30.68 ms | 402 KiB | 8 Q