3v4l.org

run code in 300+ PHP versions simultaneously
<?php header('Content-type: application/xml'); echo file_get_contents('http://cloud.tfl.gov.uk/TrackerNet/PredictionSummary/V'); $xml = simplexml_load_file('http://cloud.tfl.gov.uk/TrackerNet/PredictionSummary/V'); //retrieve URL and parse XML content echo $xml->getName(); // output name of root element
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lcTHc
function name:  (null)
number of ops:  15
compiled vars:  !0 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-type%3A+application%2Fxml'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'file_get_contents'
          4        SEND_VAL                                                 'http%3A%2F%2Fcloud.tfl.gov.uk%2FTrackerNet%2FPredictionSummary%2FV'
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
    4     7        INIT_FCALL                                               'simplexml_load_file'
          8        SEND_VAL                                                 'http%3A%2F%2Fcloud.tfl.gov.uk%2FTrackerNet%2FPredictionSummary%2FV'
          9        DO_ICALL                                         $3      
         10        ASSIGN                                                   !0, $3
    5    11        INIT_METHOD_CALL                                         !0, 'getName'
         12        DO_FCALL                                      0  $5      
         13        ECHO                                                     $5
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.21 ms | 1394 KiB | 19 Q