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.
Output for 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3
string(72) "Aa�a���(��(��(�QEQEQYe�Ye�Ye�Ye�Ye�Ye�Y`� 0� 0� 0� 0� 0� 0�" bool(false) string(97) "AAAAAAAAABBBBGGGGGGGGKKKKKKKKKKKKKRRRRRRRRRRWWWWWWWWWWWWWWWWWWWWWWWWWWDDDDDDDDDDDDDDDDDDDDDDDDDDD" string(96) "AAAAAAAAABBBBGGGGGGGGKKKKKKKKKKKKKRRRRRRRRRRWWWWWWWWWWWWWWWWWWWWWWWWWWDDDDDDDDDDDDDDDDDDDDDDDDDD" string(72) "Aa�a���(��(��(�QEQEQYe�Ye�Ye�Ye�Ye�Ye�Y`� 0� 0� 0� 0� 0� 0�" string(72) "Aa�a���(��(��(�QEQEQYe�Ye�Ye�Ye�Ye�Ye�Y`� 0� 0� 0� 0� 0� 0�"

preferences:
63.17 ms | 1054 KiB | 4 Q