3v4l.org

run code in 300+ 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:
29.74 ms | 406 KiB | 5 Q