3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $json = '{ "expand":"names", "startAt":0, "maxResults":50, "total":1, "issues":[ { "expand":"example", "id":"129018", "self":"https://example.com", "key":"914", "fields":{ "summary":"Hello there" } } ] }'; $array_result = json_decode($json); echo '<pre>'; print_r($array_result); echo '</pre>'; echo $array_result->issues[0]->fields->summary;
Output for 5.5.0 - 7.3.1
<pre>stdClass Object ( [expand] => names [startAt] => 0 [maxResults] => 50 [total] => 1 [issues] => Array ( [0] => stdClass Object ( [expand] => example [id] => 129018 [self] => https://example.com [key] => 914 [fields] => stdClass Object ( [summary] => Hello there ) ) ) ) </pre>Hello there