3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filename = "Temperature"; header("Content-type: application/vnd.ms-excel"); header( "Content-disposition: filename=".$filename.".csv"); print "location, weather, obs_time, latitude, longitude, temp_f, wind_d, wind_deg, wind_mph"; print"\r\n"; $xml = simplexml_load_file('http://w1.weather.gov/xml/current_obs/KCHA.xml'); print $xml; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pn1jf
function name:  (null)
number of ops:  17
compiled vars:  !0 = $filename, !1 = $xml
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Temperature'
    4     1        INIT_FCALL                                               'header'
          2        SEND_VAL                                                 'Content-type%3A+application%2Fvnd.ms-excel'
          3        DO_ICALL                                                 
    5     4        INIT_FCALL                                               'header'
          5        CONCAT                                           ~4      'Content-disposition%3A+filename%3D', !0
          6        CONCAT                                           ~5      ~4, '.csv'
          7        SEND_VAL                                                 ~5
          8        DO_ICALL                                                 
    8     9        ECHO                                                     'location%2C+weather%2C+obs_time%2C+latitude%2C+longitude%2C+temp_f%2C+wind_d%2C+wind_deg%2C+wind_mph'
   10    10        ECHO                                                     '%0D%0A'
   11    11        INIT_FCALL                                               'simplexml_load_file'
         12        SEND_VAL                                                 'http%3A%2F%2Fw1.weather.gov%2Fxml%2Fcurrent_obs%2FKCHA.xml'
         13        DO_ICALL                                         $7      
         14        ASSIGN                                                   !1, $7
   12    15        ECHO                                                     !1
   15    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.98 ms | 1398 KiB | 17 Q