3v4l.org

run code in 300+ PHP versions simultaneously
<?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;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/etuuc
function name:  (null)
number of ops:  16
compiled vars:  !0 = $json, !1 = $array_result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B++%0A+++%22expand%22%3A%22names%22%2C%0A+++%22startAt%22%3A0%2C%0A+++%22maxResults%22%3A50%2C%0A+++%22total%22%3A1%2C%0A+++%22issues%22%3A%5B++%0A++++++%7B++%0A+++++++++%22expand%22%3A%22example%22%2C%0A+++++++++%22id%22%3A%22129018%22%2C%0A+++++++++%22self%22%3A%22https%3A%2F%2Fexample.com%22%2C%0A+++++++++%22key%22%3A%22914%22%2C%0A+++++++++%22fields%22%3A%7B++%0A++++++++++++%22summary%22%3A%22Hello+there%22%0A+++++++++%7D%0A++++++%7D%0A+++%5D%0A%7D'
   20     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   21     5        ECHO                                                     '%3Cpre%3E'
   22     6        INIT_FCALL                                               'print_r'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
   23     9        ECHO                                                     '%3C%2Fpre%3E'
   24    10        FETCH_OBJ_R                                      ~6      !1, 'issues'
         11        FETCH_DIM_R                                      ~7      ~6, 0
         12        FETCH_OBJ_R                                      ~8      ~7, 'fields'
         13        FETCH_OBJ_R                                      ~9      ~8, 'summary'
         14        ECHO                                                     ~9
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.66 ms | 1460 KiB | 15 Q