3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = '{ "id": 32, "user_id": 1, "target_id": 3, "feedable_id": 7, "feedable_type": "review", "created_at": "2016-05-23 14:18:22", "updated_at": "2016-05-23 14:18:22", "feedable": { "id": 7, "user_id": 1, "slug_id": 3, "review": "y this product is so quite?", "stars": 9, "created_at": "2016-05-23 14:18:22", "updated_at": "2016-05-23 14:18:22", "slug": { "id": 3, "value": "Quite", "views": 5, "user_id": 1, "category_id": 1, "created_at": "2016-05-23 14:18:03", "updated_at": "2016-05-24 12:47:29" } } }'; $feed = json_decode ($json); echo $feed->feedable->slug->value;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ovWkW
function name:  (null)
number of ops:  10
compiled vars:  !0 = $json, !1 = $feed
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%0A++++%22id%22%3A+32%2C%0A++++%22user_id%22%3A+1%2C%0A++++%22target_id%22%3A+3%2C%0A++++%22feedable_id%22%3A+7%2C%0A++++%22feedable_type%22%3A+%22review%22%2C%0A++++%22created_at%22%3A+%222016-05-23+14%3A18%3A22%22%2C%0A++++%22updated_at%22%3A+%222016-05-23+14%3A18%3A22%22%2C%0A++++%22feedable%22%3A+%7B%0A++++++++%22id%22%3A+7%2C%0A++++++++%22user_id%22%3A+1%2C%0A++++++++%22slug_id%22%3A+3%2C%0A++++++++%22review%22%3A+%22y+this+product+is+so+quite%3F%22%2C%0A++++++++%22stars%22%3A+9%2C%0A++++++++%22created_at%22%3A+%222016-05-23+14%3A18%3A22%22%2C%0A++++++++%22updated_at%22%3A+%222016-05-23+14%3A18%3A22%22%2C%0A++++++++%22slug%22%3A+%7B%0A++++++++++++%22id%22%3A+3%2C%0A++++++++++++%22value%22%3A+%22Quite%22%2C%0A++++++++++++%22views%22%3A+5%2C%0A++++++++++++%22user_id%22%3A+1%2C%0A++++++++++++%22category_id%22%3A+1%2C%0A++++++++++++%22created_at%22%3A+%222016-05-23+14%3A18%3A03%22%2C%0A++++++++++++%22updated_at%22%3A+%222016-05-24+12%3A47%3A29%22%0A++++++++%7D%0A++++%7D%0A%7D'
   29     1        INIT_FCALL                                               'json_decode'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   31     5        FETCH_OBJ_R                                      ~5      !1, 'feedable'
          6        FETCH_OBJ_R                                      ~6      ~5, 'slug'
          7        FETCH_OBJ_R                                      ~7      ~6, 'value'
          8        ECHO                                                     ~7
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.6 ms | 1395 KiB | 15 Q