3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> <title>Online PHP Script Execution</title> </head> <body> <?php $string = 'eyJIVFRQX0hPU1QiOiIxOTIuMTY4LjAuOCIsIkhUVFBfQ09OTkVDVElPTiI6ImtlZXAtYWxpdmUiLCJDT05URU5UX0xFTkdUSCI6IjU3IiwiSFRUUF9BQ0NFUFQiOiIqXC8qIiwiSFRUUF9PUklHSU4iOiJodHRwOlwvXC8xOTIuMTY4LjAuOCIsIkhUVFBfWF9SRVFVRVNURURfV0lUSCI6IlhNTEh0dHBSZXF1ZXN0IiwiSFRUUF9VU0VSX0FHRU5UIjoiTW96aWxsYVwvNS4wIChXaW5kb3dzIE5UIDYuMzsgV09XNjQpIEFwcGxlV2ViS2l0XC81MzcuMzYgKEtIVE1MLCBsaWtlIEdlY2tvKSBDaHJvbWVcLzMzLjAuMTc1MC4xNTQgU2FmYXJpXC81MzcuMzYiLCJDT05URU5UX1RZUEUiOiJhcHBsaWNhdGlvblwveC13d3ctZm9ybS11cmxlbmNvZGVkOyBjaGFyc2V0PVVURi04IiwiSFRUUF9SRUZFUkVSIjoiaHR0cDpcL1wvMTkyLjE2OC4wLjhcL1NFXC9sb2dpblwvIiwiSFRUUF9BQ0NFUFRfRU5DT0RJTkciOiJnemlwLGRlZmxhdGUsc2RjaCIsIkhUVFBfQUNDRVBUX0xBTkdVQUdFIjoiZW4tVVMsZW47cT0wLjgsZXM7cT0wLjYsZ2w7cT0wLjQiLCJIVFRQX0NPT0tJRSI6IlBIUFNFU1NJRD0wa3Q0a20zc3ExdmlvazJlM2hiMzRmanVuNyIsIlBBVEgiOiJcL3VzclwvbG9jYWxcL2JpbjpcL3VzclwvYmluOlwvYmluIiwiU0VSVkVSX1NJR05BVFVSRSI6IiIsIlNFUlZFUl9TT0ZUV0FSRSI6IkFwYWNoZVwvMi40LjYgKFVidW50dSkgUEhQXC81LjUuOC0zK3N1cnkub3JnfnJhcmluZysxIiwiU0VSVkVSX05BTUUiOiIxOTIuMTY4LjAuOCIsIlNFUlZFUl9BRERSIjoiMTkyLjE2OC4wLjgiLCJTRVJWRVJfUE9SVCI6IjgwIiwiUkVNT1RFX0FERFIiOiIxOTIuMTY4LjAuNiIsIkRPQ1VNRU5UX1JPT1QiOiJcL3Zhclwvd3d3IiwiUkVRVUVTVF9TQ0hFTUUiOiJodHRwIiwiQ09OVEVYVF9QUkVGSVgiOiIiLCJDT05URVhUX0RPQ1VNRU5UX1JPT1QiOiJcL3Zhclwvd3d3IiwiU0VSVkVSX0FETUlOIjoid2VibWFzdGVyQGxvY2FsaG9zdCIsIlNDUklQVF9GSUxFTkFNRSI6IlwvdmFyXC93d3dcL1NFXC9sb2dpblwvcHJvY2Vzcy5waHAiLCJSRU1PVEVfUE9SVCI6IjE0NTMwIiwiR0FURVdBWV9JTlRFUkZBQ0UiOiJDR0lcLzEuMSIsIlNFUlZFUl9QUk9UT0NPTCI6IkhUVFBcLzEuMSIsIlJFUVVFU1RfTUVUSE9EIjoiUE9TVCIsIlFVRVJZX1NUUklORyI6IiIsIlJFUVVFU1RfVVJJIjoiXC9TRVwvbG9naW5cL3Byb2Nlc3MucGhwIiwiU0NSSVBUX05BTUUiOiJcL1NFXC9sb2dpblwvcHJvY2Vzcy5waHAiLCJQSFBfU0VMRiI6IlwvU0VcL2xvZ2luXC9wcm9jZXNzLnBocCIsIlJFUVVFU1RfVElNRV9GTE9BVCI6MTM5NTYzMzM3My43NDIsIlJFUVVFU1RfVElNRSI6MTM5NTYzMzM3M30='; //echo base64_decode($string); ?> <p title="<?php echo json_decode(base64_decode($string)); ?>"> Hola</p> </body> </html>
Output for 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
<html> <head> <title>Online PHP Script Execution</title> </head> <body> <p title=" Fatal error: Uncaught Error: Object of class stdClass could not be converted to string in /in/AvGeb:10 Stack trace: #0 {main} thrown in /in/AvGeb on line 10
Process exited with code 255.
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33
<html> <head> <title>Online PHP Script Execution</title> </head> <body> <p title=" Recoverable fatal error: Object of class stdClass could not be converted to string in /in/AvGeb on line 10
Process exited with code 255.
Output for 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33
<html> <head> <title>Online PHP Script Execution</title> </head> <body> <p title=" Catchable fatal error: Object of class stdClass could not be converted to string in /in/AvGeb on line 10
Process exited with code 255.
Output for 5.0.0 - 5.0.5, 5.1.0 - 5.1.6
<html> <head> <title>Online PHP Script Execution</title> </head> <body> <p title=" Fatal error: Call to undefined function json_decode() in /in/AvGeb on line 10
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<html> <head> <title>Online PHP Script Execution</title> </head> <body> <p title=" Fatal error: Call to undefined function: json_decode() in /in/AvGeb on line 10
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
<html> <head> <title>Online PHP Script Execution</title> </head> <body> <p title=" Fatal error: Call to undefined function: json_decode() in /in/AvGeb on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<html> <head> <title>Online PHP Script Execution</title> </head> <body> <p title=" Fatal error: Call to undefined function: json_decode() in /in/AvGeb on line 10

preferences:
315.73 ms | 402 KiB | 457 Q