3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Pixel { public $orderDateTime; public $domain; public $publId; public $privId; } class PixelHandling extends SoapClient{ // Client connection private $client_options; private $wsdl; private $client; function __construct(){ $this->client_options = array('login' => 'SlevogtE', 'password' => 'BBDEXI', 'trace' => 1); $this->wsdl = 'https://' . $client_options['login'] . ':' . $client_options['password'] . '@tom-test.vgwort.de/services/1.0/pixelService.wsdl' ; $this->client = new SoapClient($wsdl, $client_options); } // Order Pixel (amount) --> pixels will be written to array $pixels public function orderNewPixel($amount){ $params = new StdClass(); $params->count = $amount; $arr = array(); try{ $result = $this->client->orderPixel($params); foreach($result as $val){ $pixels = new Pixel(); $pixels->orderDateTime = $val->orderDateTime; $pixels->domain = $val->domain; $pixels->publId = $val->pixels->publicIdentificationId; $pixels->privId = $val->pixels->privateIdentificationId; array_push($arr, $pixels); } } catch(SoapFault $e){ echo "Fehlercode: ", $result->errorcode, "\n"; echo "Message: ", $result->errormsg, "\n"; echo "Folgende Anzahl waere moeglich gewesen: ", $result->maxOrder, "\n"; } return $arr; } } // Check whether Soap can be even used.. if(!class_exists('SoapClient')){ echo '<script type="text/javascript" language="Javascript">alert("Fehler: PHP-Modul fehlt.")</script>'; } $test = new PixelHandling(); $test->orderNewPixel(2); // Format für Pixel export // <IMG src="domain.met.vgwort.de/na/c5b7568d28884052a9ff92d5afd08f34" // height="1" width="1" border=“0“> ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/iZ0YX
function name:  (null)
number of ops:  14
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   DECLARE_CLASS                                            'pixelhandling', 'soapclient'
   58     1        INIT_FCALL                                               'class_exists'
          2        SEND_VAL                                                 'SoapClient'
          3        DO_ICALL                                         $1      
          4        BOOL_NOT                                         ~2      $1
          5      > JMPZ                                                     ~2, ->7
   59     6    >   ECHO                                                     '%3Cscript+type%3D%22text%2Fjavascript%22+language%3D%22Javascript%22%3Ealert%28%22Fehler%3A+PHP-Modul+fehlt.%22%29%3C%2Fscript%3E'
   62     7    >   NEW                                              $3      'PixelHandling'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !0, $3
   63    10        INIT_METHOD_CALL                                         !0, 'orderNewPixel'
         11        SEND_VAL_EX                                              2
         12        DO_FCALL                                      0          
   70    13      > RETURN                                                   1

Class Pixel: [no user functions]
Class PixelHandling:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iZ0YX
function name:  __construct
number of ops:  17
compiled vars:  !0 = $client_options, !1 = $wsdl
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   ASSIGN_OBJ                                               'client_options'
          1        OP_DATA                                                  <array>
   21     2        FETCH_DIM_R                                      ~4      !0, 'login'
          3        CONCAT                                           ~5      'https%3A%2F%2F', ~4
          4        CONCAT                                           ~6      ~5, '%3A'
          5        FETCH_DIM_R                                      ~7      !0, 'password'
          6        CONCAT                                           ~8      ~6, ~7
          7        CONCAT                                           ~9      ~8, '%40tom-test.vgwort.de%2Fservices%2F1.0%2FpixelService.wsdl'
          8        ASSIGN_OBJ                                               'wsdl'
          9        OP_DATA                                                  ~9
   22    10        NEW                                              $11     'SoapClient'
         11        SEND_VAR_EX                                              !1
         12        SEND_VAR_EX                                              !0
         13        DO_FCALL                                      0          
         14        ASSIGN_OBJ                                               'client'
         15        OP_DATA                                                  $11
   23    16      > RETURN                                                   null

End of function __construct

Function ordernewpixel:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 36
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 36
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 36
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: 36
Found catch point at position: 38
Branch analysis from position: 38
2 jumps found. (Code = 107) Position 1 = 39, Position 2 = -2
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/iZ0YX
function name:  orderNewPixel
number of ops:  53
compiled vars:  !0 = $amount, !1 = $params, !2 = $arr, !3 = $result, !4 = $val, !5 = $pixels, !6 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E >   RECV                                             !0      
   28     1        NEW                                              $7      'StdClass'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $7
   29     4        ASSIGN_OBJ                                               !1, 'count'
          5        OP_DATA                                                  !0
   30     6        ASSIGN                                                   !2, <array>
   33     7        FETCH_OBJ_R                                      ~12     'client'
          8        INIT_METHOD_CALL                                         ~12, 'orderPixel'
          9        SEND_VAR_EX                                              !1
         10        DO_FCALL                                      0  $13     
         11        ASSIGN                                                   !3, $13
   35    12      > FE_RESET_R                                       $15     !3, ->36
         13    > > FE_FETCH_R                                               $15, !4, ->36
   36    14    >   NEW                                              $16     'Pixel'
         15        DO_FCALL                                      0          
         16        ASSIGN                                                   !5, $16
   37    17        FETCH_OBJ_R                                      ~20     !4, 'orderDateTime'
         18        ASSIGN_OBJ                                               !5, 'orderDateTime'
         19        OP_DATA                                                  ~20
   38    20        FETCH_OBJ_R                                      ~22     !4, 'domain'
         21        ASSIGN_OBJ                                               !5, 'domain'
         22        OP_DATA                                                  ~22
   39    23        FETCH_OBJ_R                                      ~24     !4, 'pixels'
         24        FETCH_OBJ_R                                      ~25     ~24, 'publicIdentificationId'
         25        ASSIGN_OBJ                                               !5, 'publId'
         26        OP_DATA                                                  ~25
   40    27        FETCH_OBJ_R                                      ~27     !4, 'pixels'
         28        FETCH_OBJ_R                                      ~28     ~27, 'privateIdentificationId'
         29        ASSIGN_OBJ                                               !5, 'privId'
         30        OP_DATA                                                  ~28
   42    31        INIT_FCALL                                               'array_push'
         32        SEND_REF                                                 !2
         33        SEND_VAR                                                 !5
         34        DO_ICALL                                                 
   35    35      > JMP                                                      ->13
         36    >   FE_FREE                                                  $15
         37      > JMP                                                      ->51
   46    38  E > > CATCH                                       last         'SoapFault'
   47    39    >   ECHO                                                     'Fehlercode%3A+'
         40        FETCH_OBJ_R                                      ~30     !3, 'errorcode'
         41        ECHO                                                     ~30
         42        ECHO                                                     '%0A'
   48    43        ECHO                                                     'Message%3A+'
         44        FETCH_OBJ_R                                      ~31     !3, 'errormsg'
         45        ECHO                                                     ~31
         46        ECHO                                                     '%0A'
   49    47        ECHO                                                     'Folgende+Anzahl+waere+moeglich+gewesen%3A+'
         48        FETCH_OBJ_R                                      ~32     !3, 'maxOrder'
         49        ECHO                                                     ~32
         50        ECHO                                                     '%0A'
   51    51    > > RETURN                                                   !2
   52    52*     > RETURN                                                   null

End of function ordernewpixel

End of class PixelHandling.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.7 ms | 1404 KiB | 17 Q