3v4l.org

run code in 300+ PHP versions simultaneously
<?php $typeID = 1230; // set feed URL $url = 'http://api.eve-central.com/api/marketstat?typeid='.$typeID.'&regionlimit=10000002'; echo $url."<br />"; // 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->marketstat->type->buy->volume; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M2bFm
function name:  (null)
number of ops:  19
compiled vars:  !0 = $typeID, !1 = $url, !2 = $sxml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1230
    4     1        CONCAT                                           ~4      'http%3A%2F%2Fapi.eve-central.com%2Fapi%2Fmarketstat%3Ftypeid%3D', !0
          2        CONCAT                                           ~5      ~4, '%26regionlimit%3D10000002'
          3        ASSIGN                                                   !1, ~5
    5     4        CONCAT                                           ~7      !1, '%3Cbr+%2F%3E'
          5        ECHO                                                     ~7
    7     6        INIT_FCALL                                               'simplexml_load_file'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $8      
          9        ASSIGN                                                   !2, $8
   10    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
   13    13        FETCH_OBJ_R                                      ~11     !2, 'marketstat'
         14        FETCH_OBJ_R                                      ~12     ~11, 'type'
         15        FETCH_OBJ_R                                      ~13     ~12, 'buy'
         16        FETCH_OBJ_R                                      ~14     ~13, 'volume'
         17        ECHO                                                     ~14
   15    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165 ms | 1395 KiB | 17 Q