3v4l.org

run code in 300+ PHP versions simultaneously
<?php curl_setopt_array( $oCURL, $aOptions ); $sResponse = curl_exec( $oCURL ); if( $sResponse === false || curl_errno( $oCURL ) != 0 ) throw new Exception( curl_error( $oCURL ), curl_errno( $oCURL ) ); curl_close( $oCURL ); //print_r($sResponse); return $sResponse;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 27
Branch analysis from position: 16
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/cXR2f
function name:  (null)
number of ops:  32
compiled vars:  !0 = $oCURL, !1 = $aOptions, !2 = $sResponse
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'curl_setopt_array'
          1        SEND_VAR_EX                                              !0
          2        SEND_VAR_EX                                              !1
          3        DO_FCALL                                      0          
    3     4        INIT_FCALL_BY_NAME                                       'curl_exec'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0  $4      
          7        ASSIGN                                                   !2, $4
    4     8        TYPE_CHECK                                    4  ~6      !2
          9      > JMPNZ_EX                                         ~6      ~6, ->15
         10    >   INIT_FCALL_BY_NAME                                       'curl_errno'
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0  $7      
         13        IS_NOT_EQUAL                                     ~8      $7, 0
         14        BOOL                                             ~6      ~8
         15    > > JMPZ                                                     ~6, ->27
    5    16    >   NEW                                              $9      'Exception'
         17        INIT_FCALL_BY_NAME                                       'curl_error'
         18        SEND_VAR_EX                                              !0
         19        DO_FCALL                                      0  $10     
         20        SEND_VAR_NO_REF_EX                                       $10
         21        INIT_FCALL_BY_NAME                                       'curl_errno'
         22        SEND_VAR_EX                                              !0
         23        DO_FCALL                                      0  $11     
         24        SEND_VAR_NO_REF_EX                                       $11
         25        DO_FCALL                                      0          
         26      > THROW                                         0          $9
    6    27    >   INIT_FCALL_BY_NAME                                       'curl_close'
         28        SEND_VAR_EX                                              !0
         29        DO_FCALL                                      0          
    8    30      > RETURN                                                   !2
         31*     > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.48 ms | 1395 KiB | 13 Q