3v4l.org

run code in 300+ PHP versions simultaneously
<?php $request = new HttpRequest(); $request->setUrl('https://channelstream.webhotelier.net/api/properties/PRIMALRES/reservations/primalres/notify'); $request->setMethod(HTTP_METH_POST); try { $response = $request->send(); echo $response->getBody(); } catch (HttpException $ex) { echo $ex; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 17
Branch analysis from position: 17
2 jumps found. (Code = 107) Position 1 = 18, Position 2 = -2
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/okFg1
function name:  (null)
number of ops:  20
compiled vars:  !0 = $request, !1 = $response, !2 = $ex
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'HttpRequest'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        INIT_METHOD_CALL                                         !0, 'setUrl'
          4        SEND_VAL_EX                                              'https%3A%2F%2Fchannelstream.webhotelier.net%2Fapi%2Fproperties%2FPRIMALRES%2Freservations%2Fprimalres%2Fnotify'
          5        DO_FCALL                                      0          
    5     6        INIT_METHOD_CALL                                         !0, 'setMethod'
          7        FETCH_CONSTANT                                   ~7      'HTTP_METH_POST'
          8        SEND_VAL_EX                                              ~7
          9        DO_FCALL                                      0          
    8    10        INIT_METHOD_CALL                                         !0, 'send'
         11        DO_FCALL                                      0  $9      
         12        ASSIGN                                                   !1, $9
   10    13        INIT_METHOD_CALL                                         !1, 'getBody'
         14        DO_FCALL                                      0  $11     
         15        ECHO                                                     $11
         16      > JMP                                                      ->19
   11    17  E > > CATCH                                       last         'HttpException'
   12    18    >   ECHO                                                     !2
   13    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.41 ms | 1394 KiB | 13 Q