3v4l.org

run code in 300+ PHP versions simultaneously
<?php $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, 'http://scoring.rs'); $result = curl_exec($curl); if(curl_error($curl)){ die('Error: "' . curl_error($curl) . '" - Code: ' . curl_errno($curl)); } curl_close($curl);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 27
Branch analysis from position: 17
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0nvgE
function name:  (null)
number of ops:  31
compiled vars:  !0 = $curl, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'curl_init'
          1        DO_FCALL                                      0  $2      
          2        ASSIGN                                                   !0, $2
    3     3        INIT_FCALL_BY_NAME                                       'curl_setopt'
          4        SEND_VAR_EX                                              !0
          5        FETCH_CONSTANT                                   ~4      'CURLOPT_URL'
          6        SEND_VAL_EX                                              ~4
          7        SEND_VAL_EX                                              'http%3A%2F%2Fscoring.rs'
          8        DO_FCALL                                      0          
    4     9        INIT_FCALL_BY_NAME                                       'curl_exec'
         10        SEND_VAR_EX                                              !0
         11        DO_FCALL                                      0  $6      
         12        ASSIGN                                                   !1, $6
    5    13        INIT_FCALL_BY_NAME                                       'curl_error'
         14        SEND_VAR_EX                                              !0
         15        DO_FCALL                                      0  $8      
         16      > JMPZ                                                     $8, ->27
    6    17    >   INIT_FCALL_BY_NAME                                       'curl_error'
         18        SEND_VAR_EX                                              !0
         19        DO_FCALL                                      0  $9      
         20        CONCAT                                           ~10     'Error%3A+%22', $9
         21        CONCAT                                           ~11     ~10, '%22+-+Code%3A+'
         22        INIT_FCALL_BY_NAME                                       'curl_errno'
         23        SEND_VAR_EX                                              !0
         24        DO_FCALL                                      0  $12     
         25        CONCAT                                           ~13     ~11, $12
         26      > EXIT                                                     ~13
    8    27    >   INIT_FCALL_BY_NAME                                       'curl_close'
         28        SEND_VAR_EX                                              !0
         29        DO_FCALL                                      0          
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.01 ms | 1395 KiB | 13 Q