3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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))));
based on 7E0XG
Output for 5.4.0 - 7.2.0
string(32) "YWJjZGVmQUJDREVGMTIzNDU2Nzg5MA==" string(32) "YWJjZGVmYWJjZGVmMTIzNDU2Nzg5MA==" string(32) "QUJDREVGQUJDREVGMTIzNDU2Nzg5MA==" string(16) "q83vq83vEjRWeJA=" string(16) "q83vq83vEjRWeJA=" string(16) "q83vq83vEjRWeJA="
Output for 5.0.0 - 5.3.29
string(32) "YWJjZGVmQUJDREVGMTIzNDU2Nzg5MA==" string(32) "YWJjZGVmYWJjZGVmMTIzNDU2Nzg5MA==" string(32) "QUJDREVGQUJDREVGMTIzNDU2Nzg5MA==" Fatal error: Call to undefined function hex2bin() in /in/LCPTt on line 9
Process exited with code 255.
Output for 4.4.5 - 4.4.9
string(32) "YWJjZGVmQUJDREVGMTIzNDU2Nzg5MA==" string(32) "YWJjZGVmYWJjZGVmMTIzNDU2Nzg5MA==" string(32) "QUJDREVGQUJDREVGMTIzNDU2Nzg5MA==" Fatal error: Call to undefined function: hex2bin() in /in/LCPTt on line 9
Process exited with code 255.
Output for 4.3.2 - 4.4.4
string(32) "YWJjZGVmQUJDREVGMTIzNDU2Nzg5MA==" string(32) "YWJjZGVmYWJjZGVmMTIzNDU2Nzg5MA==" string(32) "QUJDREVGQUJDREVGMTIzNDU2Nzg5MA==" Fatal error: Call to undefined function: hex2bin() in /in/LCPTt on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
string(32) "YWJjZGVmQUJDREVGMTIzNDU2Nzg5MA==" string(32) "YWJjZGVmYWJjZGVmMTIzNDU2Nzg5MA==" string(32) "QUJDREVGQUJDREVGMTIzNDU2Nzg5MA==" Fatal error: Call to undefined function: hex2bin() in /in/LCPTt on line 9