3v4l.org

run code in 500+ PHP versions simultaneously
<?php $json_response = json_decode('{ "results": [ { "tagging_id": null, "image": "image.jpg", "tags": [ { "confidence": 100, "tag": "herb" }, { "confidence": 98.3637619018555, "tag": "plant" } ] } ] }', true); echo $json_response['results'][0]['tags'][0]['tag'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kki58
function name:  (null)
number of ops:  12
compiled vars:  !0 = $json_response
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'json_decode'
          1        SEND_VAL                                                     '%7B%0A++%22results%22%3A+%5B%0A++++%7B%0A++++++%22tagging_id%22%3A+null%2C%0A++++++%22image%22%3A+%22image.jpg%22%2C%0A++++++%22tags%22%3A+%5B%0A++++++++%7B%0A++++++++++%22confidence%22%3A+100%2C%0A++++++++++%22tag%22%3A+%22herb%22%0A++++++++%7D%2C%0A++++++++%7B%0A++++++++++%22confidence%22%3A+98.3637619018555%2C%0A++++++++++%22tag%22%3A+%22plant%22%0A++++++++%7D%0A++++++%5D%0A++++%7D%0A++%5D%0A%7D'
   20     2        SEND_VAL                                                     <true>
    3     3        DO_ICALL                                             $1      
          4        ASSIGN                                                       !0, $1
   22     5        FETCH_DIM_R                                          ~3      !0, 'results'
          6        FETCH_DIM_R                                          ~4      ~3, 0
          7        FETCH_DIM_R                                          ~5      ~4, 'tags'
          8        FETCH_DIM_R                                          ~6      ~5, 0
          9        FETCH_DIM_R                                          ~7      ~6, 'tag'
         10        ECHO                                                         ~7
         11      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159.31 ms | 2176 KiB | 14 Q