3v4l.org

run code in 300+ PHP versions simultaneously
<?php // set feed URL $url = 'http://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20yahoo.finance.xchange%20where%20pair%20in%20(%22INRUSD%22)&diagnostics=true&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys'; // read feed into SimpleXML object $sxml = simplexml_load_file($url); // then you can do var_dump($sxml); // And now you'll be able to call `$sxml->marketstat->type->buy->volume` as well as other properties. echo $sxml->diagnostics->results->rate->Rate; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kRuL7
function name:  (null)
number of ops:  14
compiled vars:  !0 = $url, !1 = $sxml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fquery.yahooapis.com%2Fv1%2Fpublic%2Fyql%3Fq%3Dselect%2520%2A%2520from%2520yahoo.finance.xchange%2520where%2520pair%2520in%2520%28%2522INRUSD%2522%29%26diagnostics%3Dtrue%26env%3Dstore%253A%252F%252Fdatatables.org%252Falltableswithkeys'
    6     1        INIT_FCALL                                               'simplexml_load_file'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
    9     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
   12     8        FETCH_OBJ_R                                      ~6      !1, 'diagnostics'
          9        FETCH_OBJ_R                                      ~7      ~6, 'results'
         10        FETCH_OBJ_R                                      ~8      ~7, 'rate'
         11        FETCH_OBJ_R                                      ~9      ~8, 'Rate'
         12        ECHO                                                     ~9
   16    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.21 ms | 1394 KiB | 17 Q