3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function base64u_decode($data) { return base64_decode(strtr($data, '-_', '+/')); } $clientData = "eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiUklZdzh5SXAtUEJPalU1XzJGdmNrVVUydjJBT2lUTzAwN2dHWjhSeFItSSIsIm9yaWdpbiI6Imh0dHBzOi8vbG9jYWxob3N0IiwiY2lkX3B1YmtleSI6IiJ9"; $decodedClient = (String) json_decode(base64u_decode($clientData)); echo $decodedClient; ?>
based on JMuWa
Output for 7.1.0 - 7.2.0
Recoverable fatal error: Object of class stdClass could not be converted to string in /in/TXcmX on line 6
Process exited with code 255.
Output for 5.3.20 - 7.0.20
Catchable fatal error: Object of class stdClass could not be converted to string in /in/TXcmX on line 6
Process exited with code 255.