3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://www.google.com/"); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); $response = curl_exec($ch); if (curl_error($ch)) { $error_msg = curl_error($ch); var_dump($error_msg);exit; } curl_close($ch); var_dump($response);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 31
Branch analysis from position: 23
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Kt86v
function name:  (null)
number of ops:  38
compiled vars:  !0 = $ch, !1 = $response, !2 = $error_msg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'curl_init'
          1        DO_FCALL                                      0  $3      
          2        ASSIGN                                                   !0, $3
    4     3        INIT_FCALL_BY_NAME                                       'curl_setopt'
          4        SEND_VAR_EX                                              !0
          5        FETCH_CONSTANT                                   ~5      'CURLOPT_URL'
          6        SEND_VAL_EX                                              ~5
          7        SEND_VAL_EX                                              'https%3A%2F%2Fwww.google.com%2F'
          8        DO_FCALL                                      0          
    5     9        INIT_FCALL_BY_NAME                                       'curl_setopt'
         10        SEND_VAR_EX                                              !0
         11        FETCH_CONSTANT                                   ~7      'CURLOPT_RETURNTRANSFER'
         12        SEND_VAL_EX                                              ~7
         13        SEND_VAL_EX                                              1
         14        DO_FCALL                                      0          
    6    15        INIT_FCALL_BY_NAME                                       'curl_exec'
         16        SEND_VAR_EX                                              !0
         17        DO_FCALL                                      0  $9      
         18        ASSIGN                                                   !1, $9
    7    19        INIT_FCALL_BY_NAME                                       'curl_error'
         20        SEND_VAR_EX                                              !0
         21        DO_FCALL                                      0  $11     
         22      > JMPZ                                                     $11, ->31
    8    23    >   INIT_FCALL_BY_NAME                                       'curl_error'
         24        SEND_VAR_EX                                              !0
         25        DO_FCALL                                      0  $12     
         26        ASSIGN                                                   !2, $12
    9    27        INIT_FCALL                                               'var_dump'
         28        SEND_VAR                                                 !2
         29        DO_ICALL                                                 
         30      > EXIT                                                     
   11    31    >   INIT_FCALL_BY_NAME                                       'curl_close'
         32        SEND_VAR_EX                                              !0
         33        DO_FCALL                                      0          
   13    34        INIT_FCALL                                               'var_dump'
         35        SEND_VAR                                                 !1
         36        DO_ICALL                                                 
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.45 ms | 999 KiB | 14 Q