3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = '[{"address":"2801 Elliott Ave","category_ids":[347],"category_labels":[["Social","Food and Dining","Restaurants"]],"country":"us","email":"kimd@thedussingroup.com","factual_id":"43cfe238-ae8e-469a-8592-a1edc8603051","fax":"(206) 448-9252","latitude":47.615154,"locality":"Seattle","longitude":-122.353724,"name":"The Old Spaghetti Factory","neighborhood":["Belltown","Downtown","Downtown Seattle"],"postcode":"98121","region":"WA","tel":"(206) 441-7724","website":"http:\/\/www.osf.com"}]'; $json = json_decode($array); echo $json[0]->locality; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kIv54
function name:  (null)
number of ops:  9
compiled vars:  !0 = $array, !1 = $json
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%5B%7B%22address%22%3A%222801+Elliott+Ave%22%2C%22category_ids%22%3A%5B347%5D%2C%22category_labels%22%3A%5B%5B%22Social%22%2C%22Food+and+Dining%22%2C%22Restaurants%22%5D%5D%2C%22country%22%3A%22us%22%2C%22email%22%3A%22kimd%40thedussingroup.com%22%2C%22factual_id%22%3A%2243cfe238-ae8e-469a-8592-a1edc8603051%22%2C%22fax%22%3A%22%28206%29+448-9252%22%2C%22latitude%22%3A47.615154%2C%22locality%22%3A%22Seattle%22%2C%22longitude%22%3A-122.353724%2C%22name%22%3A%22The+Old+Spaghetti+Factory%22%2C%22neighborhood%22%3A%5B%22Belltown%22%2C%22Downtown%22%2C%22Downtown+Seattle%22%5D%2C%22postcode%22%3A%2298121%22%2C%22region%22%3A%22WA%22%2C%22tel%22%3A%22%28206%29+441-7724%22%2C%22website%22%3A%22http%3A%5C%2F%5C%2Fwww.osf.com%22%7D%5D'
    4     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    6     5        FETCH_DIM_R                                      ~5      !1, 0
          6        FETCH_OBJ_R                                      ~6      ~5, 'locality'
          7        ECHO                                                     ~6
    7     8      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.59 ms | 1394 KiB | 15 Q