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; // And if you want to fetch multiple IDs: foreach($sxml->marketstat->type as $type){ echo $type->buy->volume . "<br>"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 21, Position 2 = 27
Branch analysis from position: 21
2 jumps found. (Code = 78) Position 1 = 22, Position 2 = 27
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/9pfJa
function name:  (null)
number of ops:  29
compiled vars:  !0 = $typeID, !1 = $url, !2 = $sxml, !3 = $type
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1230
    4     1        CONCAT                                           ~5      'http%3A%2F%2Fapi.eve-central.com%2Fapi%2Fmarketstat%3Ftypeid%3D', !0
          2        CONCAT                                           ~6      ~5, '%26regionlimit%3D10000002'
          3        ASSIGN                                                   !1, ~6
    5     4        CONCAT                                           ~8      !1, '%3Cbr+%2F%3E'
          5        ECHO                                                     ~8
    7     6        INIT_FCALL                                               'simplexml_load_file'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $9      
          9        ASSIGN                                                   !2, $9
   10    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                                 
   13    13        FETCH_OBJ_R                                      ~12     !2, 'marketstat'
         14        FETCH_OBJ_R                                      ~13     ~12, 'type'
         15        FETCH_OBJ_R                                      ~14     ~13, 'buy'
         16        FETCH_OBJ_R                                      ~15     ~14, 'volume'
         17        ECHO                                                     ~15
   16    18        FETCH_OBJ_R                                      ~16     !2, 'marketstat'
         19        FETCH_OBJ_R                                      ~17     ~16, 'type'
         20      > FE_RESET_R                                       $18     ~17, ->27
         21    > > FE_FETCH_R                                               $18, !3, ->27
   17    22    >   FETCH_OBJ_R                                      ~19     !3, 'buy'
         23        FETCH_OBJ_R                                      ~20     ~19, 'volume'
         24        CONCAT                                           ~21     ~20, '%3Cbr%3E'
         25        ECHO                                                     ~21
   16    26      > JMP                                                      ->21
         27    >   FE_FREE                                                  $18
   19    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.8 ms | 1396 KiB | 17 Q