3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id = 68; $json = file_get_contents("http://www.gw2spidy.com/api/v0.9/json/recipes/all/1"); $result = json_decode($json, true); $item = $result['results.result']; echo $item['name']; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vc7Nj
function name:  (null)
number of ops:  15
compiled vars:  !0 = $id, !1 = $json, !2 = $result, !3 = $item
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 68
    3     1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAL                                                 'http%3A%2F%2Fwww.gw2spidy.com%2Fapi%2Fv0.9%2Fjson%2Frecipes%2Fall%2F1'
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
    4     5        INIT_FCALL                                               'json_decode'
          6        SEND_VAR                                                 !1
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !2, $7
    5    10        FETCH_DIM_R                                      ~9      !2, 'results.result'
         11        ASSIGN                                                   !3, ~9
    7    12        FETCH_DIM_R                                      ~11     !3, 'name'
         13        ECHO                                                     ~11
    8    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.55 ms | 1394 KiB | 17 Q