3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json_url = "http://ben.s3root.net/tutorials/JavaScript/alfred_merged.json"; $json = file_get_contents($json_url); // Convert JSON string to Array $data = json_decode($json, true); // print_r($data); echo $data[0]["addresses"];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jvhP6
function name:  (null)
number of ops:  14
compiled vars:  !0 = $json_url, !1 = $json, !2 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fben.s3root.net%2Ftutorials%2FJavaScript%2Falfred_merged.json'
    3     1        INIT_FCALL                                               'file_get_contents'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
    6     5        INIT_FCALL                                               'json_decode'
          6        SEND_VAR                                                 !1
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !2, $6
    8    10        FETCH_DIM_R                                      ~8      !2, 0
         11        FETCH_DIM_R                                      ~9      ~8, 'addresses'
         12        ECHO                                                     ~9
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.62 ms | 1394 KiB | 17 Q