3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function base64u_decode($data) { return base64_decode(strtr($data, '-_', '+/')); } $clientData = "eyJ0eXAiOiJuYXZpZ2F0b3IuaWQuZ2V0QXNzZXJ0aW9uIiwiY2hhbGxlbmdlIjoiUklZdzh5SXAtUEJPalU1XzJGdmNrVVUydjJBT2lUTzAwN2dHWjhSeFItSSIsIm9yaWdpbiI6Imh0dHBzOi8vbG9jYWxob3N0IiwiY2lkX3B1YmtleSI6IiJ9"; $decodedClient = json_decode(base64u_decode($clientData)); echo $decodedClient.toString(); ?>
based on TXcmX
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function toString() in /in/YMjH2:7 Stack trace: #0 {main} thrown in /in/YMjH2 on line 7
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Call to undefined function toString() in /in/YMjH2 on line 7
Process exited with code 255.