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.
Output for 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
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:
68.64 ms | 407 KiB | 5 Q