3v4l.org

run code in 300+ PHP versions simultaneously
<?php $phoneNumber = '972544273449'; $content = 'Bob'; ini_set('soap.wsdl_cache_enabled', '0'); $options = array('soap_version' => SOAP_1_2); $url = 'http://smsotp.fpt.vn/Service.asmx/SendSMS'; if(substr($phoneNumber,0, 1)=='0'){ $phoneNumber = '84'.substr($phoneNumber,1, strlen($phoneNumber)); } try { $client = @new SoapClient($url, $options); $params = array( 'PhoneNumber' => $phoneNumber, 'Message' => $content, 'Resource' => 3 ); $result = $client->SendSMS($params); } catch (SoapFault $e) { $result = $e->getMessage(); } return $result;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 25
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 45
Branch analysis from position: 45
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
Found catch point at position: 41
Branch analysis from position: 41
2 jumps found. (Code = 107) Position 1 = 42, Position 2 = -2
Branch analysis from position: 42
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pbnVl
function name:  (null)
number of ops:  47
compiled vars:  !0 = $phoneNumber, !1 = $content, !2 = $options, !3 = $url, !4 = $client, !5 = $params, !6 = $result, !7 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '972544273449'
    4     1        ASSIGN                                                   !1, 'Bob'
    6     2        INIT_FCALL                                               'ini_set'
          3        SEND_VAL                                                 'soap.wsdl_cache_enabled'
          4        SEND_VAL                                                 '0'
          5        DO_ICALL                                                 
    7     6        FETCH_CONSTANT                                   ~11     'SOAP_1_2'
          7        INIT_ARRAY                                       ~12     ~11, 'soap_version'
          8        ASSIGN                                                   !2, ~12
    8     9        ASSIGN                                                   !3, 'http%3A%2F%2Fsmsotp.fpt.vn%2FService.asmx%2FSendSMS'
   10    10        INIT_FCALL                                               'substr'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 0
         13        SEND_VAL                                                 1
         14        DO_ICALL                                         $15     
         15        IS_EQUAL                                                 $15, '0'
         16      > JMPZ                                                     ~16, ->25
   11    17    >   INIT_FCALL                                               'substr'
         18        SEND_VAR                                                 !0
         19        SEND_VAL                                                 1
         20        STRLEN                                           ~17     !0
         21        SEND_VAL                                                 ~17
         22        DO_ICALL                                         $18     
         23        CONCAT                                           ~19     '84', $18
         24        ASSIGN                                                   !0, ~19
   14    25    >   BEGIN_SILENCE                                    ~21     
         26        NEW                                              $22     'SoapClient'
         27        SEND_VAR_EX                                              !3
         28        SEND_VAR_EX                                              !2
         29        DO_FCALL                                      0          
         30        END_SILENCE                                              ~21
         31        ASSIGN                                                   !4, $22
   16    32        INIT_ARRAY                                       ~25     !0, 'PhoneNumber'
   17    33        ADD_ARRAY_ELEMENT                                ~25     !1, 'Message'
   18    34        ADD_ARRAY_ELEMENT                                ~25     3, 'Resource'
   15    35        ASSIGN                                                   !5, ~25
   21    36        INIT_METHOD_CALL                                         !4, 'SendSMS'
         37        SEND_VAR_EX                                              !5
         38        DO_FCALL                                      0  $27     
         39        ASSIGN                                                   !6, $27
         40      > JMP                                                      ->45
   23    41  E > > CATCH                                       last         'SoapFault'
   24    42    >   INIT_METHOD_CALL                                         !7, 'getMessage'
         43        DO_FCALL                                      0  $29     
         44        ASSIGN                                                   !6, $29
   27    45    > > RETURN                                                   !6
         46*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.06 ms | 1400 KiB | 17 Q