3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ch = curl_init('http://404.php.net/'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); if(curl_exec($ch) === false) { echo 'Curl error: ' . curl_error($ch); } else { echo 'Operation completed without any errors'; } // Close handle curl_close($ch);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 21
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ulhul
function name:  (null)
number of ops:  26
compiled vars:  !0 = $ch
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'curl_init'
          1        SEND_VAL_EX                                              'http%3A%2F%2F404.php.net%2F'
          2        DO_FCALL                                      0  $1      
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL_BY_NAME                                       'curl_setopt'
          5        SEND_VAR_EX                                              !0
          6        FETCH_CONSTANT                                   ~3      'CURLOPT_RETURNTRANSFER'
          7        SEND_VAL_EX                                              ~3
          8        SEND_VAL_EX                                              <true>
          9        DO_FCALL                                      0          
    6    10        INIT_FCALL_BY_NAME                                       'curl_exec'
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0  $5      
         13        TYPE_CHECK                                    4          $5
         14      > JMPZ                                                     ~6, ->21
    8    15    >   INIT_FCALL_BY_NAME                                       'curl_error'
         16        SEND_VAR_EX                                              !0
         17        DO_FCALL                                      0  $7      
         18        CONCAT                                           ~8      'Curl+error%3A+', $7
         19        ECHO                                                     ~8
         20      > JMP                                                      ->22
   12    21    >   ECHO                                                     'Operation+completed+without+any+errors'
   16    22    >   INIT_FCALL_BY_NAME                                       'curl_close'
         23        SEND_VAR_EX                                              !0
         24        DO_FCALL                                      0          
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.68 ms | 1394 KiB | 13 Q