3v4l.org

run code in 300+ PHP versions simultaneously
<?php $d = date("d"); $m = date("m"); $Y = date("Y"); $day = date("d/m/Y", mktime(0, 0, 0, $m, $d-1, $Y)); $method = "getValor"; $currency_cod = "1"; $WsSOAP = new SoapClient("https://www3.bcb.gov.br/sgspub/JSP/sgsgeral/FachadaWSSGS.wsdl"); try { $response = $WsSOAP -> $method($currency_cod,$day); if (isset($response) && !empty($response)) { print_r($dolar); } } catch (Exception $Exception) { echo(getMessage()); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 39, Position 2 = 42
Branch analysis from position: 39
2 jumps found. (Code = 43) Position 1 = 43, Position 2 = 46
Branch analysis from position: 43
1 jumps found. (Code = 42) Position 1 = 51
Branch analysis from position: 51
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 46
Branch analysis from position: 42
Found catch point at position: 47
Branch analysis from position: 47
2 jumps found. (Code = 107) Position 1 = 48, Position 2 = -2
Branch analysis from position: 48
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/otk1S
function name:  (null)
number of ops:  52
compiled vars:  !0 = $d, !1 = $m, !2 = $Y, !3 = $day, !4 = $method, !5 = $currency_cod, !6 = $WsSOAP, !7 = $response, !8 = $dolar, !9 = $Exception
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'd'
          2        DO_ICALL                                         $10     
          3        ASSIGN                                                   !0, $10
    3     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'm'
          6        DO_ICALL                                         $12     
          7        ASSIGN                                                   !1, $12
    4     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'Y'
         10        DO_ICALL                                         $14     
         11        ASSIGN                                                   !2, $14
    5    12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'd%2Fm%2FY'
         14        INIT_FCALL                                               'mktime'
         15        SEND_VAL                                                 0
         16        SEND_VAL                                                 0
         17        SEND_VAL                                                 0
         18        SEND_VAR                                                 !1
         19        SUB                                              ~16     !0, 1
         20        SEND_VAL                                                 ~16
         21        SEND_VAR                                                 !2
         22        DO_ICALL                                         $17     
         23        SEND_VAR                                                 $17
         24        DO_ICALL                                         $18     
         25        ASSIGN                                                   !3, $18
    7    26        ASSIGN                                                   !4, 'getValor'
    8    27        ASSIGN                                                   !5, '1'
   10    28        NEW                                              $22     'SoapClient'
         29        SEND_VAL_EX                                              'https%3A%2F%2Fwww3.bcb.gov.br%2Fsgspub%2FJSP%2Fsgsgeral%2FFachadaWSSGS.wsdl'
         30        DO_FCALL                                      0          
         31        ASSIGN                                                   !6, $22
   13    32        INIT_METHOD_CALL                                         !6, !4
         33        SEND_VAR_EX                                              !5
         34        SEND_VAR_EX                                              !3
         35        DO_FCALL                                      0  $25     
         36        ASSIGN                                                   !7, $25
   14    37        ISSET_ISEMPTY_CV                                 ~27     !7
         38      > JMPZ_EX                                          ~27     ~27, ->42
         39    >   ISSET_ISEMPTY_CV                                 ~28     !7
         40        BOOL_NOT                                         ~29     ~28
         41        BOOL                                             ~27     ~29
         42    > > JMPZ                                                     ~27, ->46
   16    43    >   INIT_FCALL                                               'print_r'
         44        SEND_VAR                                                 !8
         45        DO_ICALL                                                 
         46    > > JMP                                                      ->51
   19    47  E > > CATCH                                       last         'Exception'
   20    48    >   INIT_FCALL_BY_NAME                                       'getMessage'
         49        DO_FCALL                                      0  $31     
         50        ECHO                                                     $31
   21    51    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.57 ms | 1400 KiB | 19 Q