3v4l.org

run code in 500+ PHP versions simultaneously
<?php $key = "AAAAAAAAABBBBGGGGGGGGKKKKKKKKKKKKKRRRRRRRRRRWWWWWWWWWWWWWWWWWWWWWWWWWWDDDDDDDDDDDDDDDDDDDDDDDDDDD"; var_dump(base64_decode($key)); var_dump(base64_decode($key, true)); // This is what JWT lib is using. $newKey = base64_encode(base64_decode($key)); var_dump($key, $newKey); var_dump(base64_decode($newKey)); var_dump(base64_decode($newKey, true)); // This is what JWT lib is using.

preferences:
41.61 ms | 1048 KiB | 5 Q