3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* http://sourceforge.net/projects/nusoap/ */ require('../includes/nusoap/nusoap.php'); $parameters = array('product' => 'glance', 'numDays' => 5, 'format' => '24 hourly', 'latitude' => 41.879535, 'longitude' => -87.624333); try { /* create the nuSOAP object */ $c = new nusoap_client('http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl', 'wsdl'); /* make the request */ $result = $c->call('NDFDgen', $parameters); } catch (Exception $ex) { /* nuSOAP throws an exception is there was a problem fetching the data */ echo 'failed'; } header('Content-type: text/xml'); echo $result; /* ?> */
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 13
Branch analysis from position: 13
2 jumps found. (Code = 107) Position 1 = 14, Position 2 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4a1ou
function name:  (null)
number of ops:  20
compiled vars:  !0 = $parameters, !1 = $c, !2 = $result, !3 = $ex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INCLUDE_OR_EVAL                                          '..%2Fincludes%2Fnusoap%2Fnusoap.php', REQUIRE
    6     1        ASSIGN                                                   !0, <array>
   15     2        NEW                                              $6      'nusoap_client'
          3        SEND_VAL_EX                                              'http%3A%2F%2Fwww.weather.gov%2Fforecasts%2Fxml%2FDWMLgen%2Fwsdl%2FndfdXML.wsdl'
          4        SEND_VAL_EX                                              'wsdl'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $6
   18     7        INIT_METHOD_CALL                                         !1, 'call'
          8        SEND_VAL_EX                                              'NDFDgen'
          9        SEND_VAR_EX                                              !0
         10        DO_FCALL                                      0  $9      
         11        ASSIGN                                                   !2, $9
         12      > JMP                                                      ->15
   20    13  E > > CATCH                                       last         'Exception'
   23    14    >   ECHO                                                     'failed'
   26    15    >   INIT_FCALL                                               'header'
         16        SEND_VAL                                                 'Content-type%3A+text%2Fxml'
         17        DO_ICALL                                                 
   27    18        ECHO                                                     !2
   29    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.71 ms | 1395 KiB | 15 Q