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(base64_encode(hex2bin($token))); var_dump(base64_encode(hex2bin(strtolower($token)))); var_dump(base64_encode(hex2bin(strtoupper($token))));
Output for git.master, git.master_jit, rfc.property-hooks
string(32) "YWJjZGVmQUJDREVGMTIzNDU2Nzg5MA==" string(32) "YWJjZGVmYWJjZGVmMTIzNDU2Nzg5MA==" string(32) "QUJDREVGQUJDREVGMTIzNDU2Nzg5MA==" string(16) "q83vq83vEjRWeJA=" string(16) "q83vq83vEjRWeJA=" string(16) "q83vq83vEjRWeJA="

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:
56.01 ms | 401 KiB | 8 Q