3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo json_decode('{ "links": { "self": "http://example.com/articles/1" }, "data": { "type": "articles", "id": "1", "attributes": { "title": "JSON API paints my bikeshed!" }, "relationships": { "author": { "links": { "related": "http://example.com/articles/1/author" } } } } }');
based on TsLYv
Output for 7.1.5 - 7.2.0
Recoverable fatal error: Object of class stdClass could not be converted to string in /in/hcrNl on line 2
Process exited with code 255.
Output for 7.1.0
Recoverable fatal error: Object of class stdClass could not be converted to string in /in/hcrNl on line 20
Process exited with code 255.
Output for 7.0.20
Catchable fatal error: Object of class stdClass could not be converted to string in /in/hcrNl on line 2
Process exited with code 255.
Output for 5.3.17 - 7.0.6
Catchable fatal error: Object of class stdClass could not be converted to string in /in/hcrNl on line 20
Process exited with code 255.