3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "server_response": [ { "error": true, "instId": "1", "instName": "abc", "instDescription": "my description", "instLogo": "web.com/image/mylogo.jgp" } ] }'; $result = json_decode ($json); print_r($result); echo $result->server_response[0]->instDescription;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/6d1dV
function name:  (null)
number of ops:  13
compiled vars:  !0 = $json, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%0A++++%22server_response%22%3A+%5B%0A++++++++%7B%0A++++++++++++%22error%22%3A+true%2C%0A++++++++++++%22instId%22%3A+%221%22%2C%0A++++++++++++%22instName%22%3A+%22abc%22%2C%0A++++++++++++%22instDescription%22%3A+%22my+description%22%2C%0A++++++++++++%22instLogo%22%3A+%22web.com%2Fimage%2Fmylogo.jgp%22%0A++++++++%7D%0A++++%5D%0A%7D'
   13     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   14     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
   16     8        FETCH_OBJ_R                                      ~6      !1, 'server_response'
          9        FETCH_DIM_R                                      ~7      ~6, 0
         10        FETCH_OBJ_R                                      ~8      ~7, 'instDescription'
         11        ECHO                                                     ~8
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.88 ms | 998 KiB | 15 Q