3v4l.org

run code in 300+ PHP versions simultaneously
<?php $token = "abcdefABCDEF1234567890"; var_dump(base64_encode($token)); var_dump(base64_encode(strtolower($token))); var_dump(base64_encode(strtoupper($token))); var_dump(hex2bin(base64_encode($token))); var_dump(hex2bin(base64_encode(strtolower($token)))); var_dump(hex2bin(base64_encode(strtoupper($token))));
Output for git.master, git.master_jit, rfc.property-hooks
string(32) "YWJjZGVmQUJDREVGMTIzNDU2Nzg5MA==" string(32) "YWJjZGVmYWJjZGVmMTIzNDU2Nzg5MA==" string(32) "QUJDREVGQUJDREVGMTIzNDU2Nzg5MA==" Warning: hex2bin(): Input string must be hexadecimal string in /in/7E0XG on line 9 bool(false) Warning: hex2bin(): Input string must be hexadecimal string in /in/7E0XG on line 10 bool(false) Warning: hex2bin(): Input string must be hexadecimal string in /in/7E0XG on line 11 bool(false)

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