3v4l.org

run code in 300+ PHP versions simultaneously
<?php $curl_multi_handle = curl_multi_init(); $curl_handle1 = curl_init('iamdoooooooown.com'); curl_setopt($curl_handle1, CURLOPT_RETURNTRANSFER, true); curl_multi_add_handle($curl_multi_handle, $curl_handle1); $still_running = 1; while($still_running > 0) $multi_errors = curl_multi_exec($curl_multi_handle, $still_running); if($multi_errors != CURLM_OK) die("curl error [$multi_errors]: ".curl_error($curl_multi_handle)); if(strlen(curl_error($curl_handle1))) die("curl error: [".curl_error($curl_handle1)."]<br>"); $curl_info = curl_getinfo($curl_handle1); //info for individual requests $is_up = ($curl_info['http_code'] == 0) ? 0 : 1; $content = curl_multi_getcontent($curl_handle1); curl_multi_remove_handle($curl_multi_handle, $curl_handle1); curl_close($curl_handle1); curl_multi_close($curl_multi_handle);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 19
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 37
Branch analysis from position: 29
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 42, Position 2 = 48
Branch analysis from position: 42
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 48
2 jumps found. (Code = 43) Position 1 = 55, Position 2 = 57
Branch analysis from position: 55
1 jumps found. (Code = 42) Position 1 = 58
Branch analysis from position: 58
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 57
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 26, Position 2 = 19
Branch analysis from position: 26
Branch analysis from position: 19
filename:       /in/HHhmh
function name:  (null)
number of ops:  74
compiled vars:  !0 = $curl_multi_handle, !1 = $curl_handle1, !2 = $still_running, !3 = $multi_errors, !4 = $curl_info, !5 = $is_up, !6 = $content
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL_BY_NAME                                       'curl_multi_init'
          1        DO_FCALL                                      0  $7      
          2        ASSIGN                                                   !0, $7
    3     3        INIT_FCALL_BY_NAME                                       'curl_init'
          4        SEND_VAL_EX                                              'iamdoooooooown.com'
          5        DO_FCALL                                      0  $9      
          6        ASSIGN                                                   !1, $9
    4     7        INIT_FCALL_BY_NAME                                       'curl_setopt'
          8        SEND_VAR_EX                                              !1
          9        FETCH_CONSTANT                                   ~11     'CURLOPT_RETURNTRANSFER'
         10        SEND_VAL_EX                                              ~11
         11        SEND_VAL_EX                                              <true>
         12        DO_FCALL                                      0          
    5    13        INIT_FCALL_BY_NAME                                       'curl_multi_add_handle'
         14        SEND_VAR_EX                                              !0
         15        SEND_VAR_EX                                              !1
         16        DO_FCALL                                      0          
    6    17        ASSIGN                                                   !2, 1
    7    18      > JMP                                                      ->24
         19    >   INIT_FCALL_BY_NAME                                       'curl_multi_exec'
         20        SEND_VAR_EX                                              !0
         21        SEND_VAR_EX                                              !2
         22        DO_FCALL                                      0  $15     
         23        ASSIGN                                                   !3, $15
         24    >   IS_SMALLER                                               0, !2
         25      > JMPNZ                                                    ~17, ->19
    8    26    >   FETCH_CONSTANT                                   ~18     'CURLM_OK'
         27        IS_NOT_EQUAL                                             !3, ~18
         28      > JMPZ                                                     ~19, ->37
         29    >   ROPE_INIT                                     3  ~21     'curl+error+%5B'
         30        ROPE_ADD                                      1  ~21     ~21, !3
         31        ROPE_END                                      2  ~20     ~21, '%5D%3A+'
         32        INIT_FCALL_BY_NAME                                       'curl_error'
         33        SEND_VAR_EX                                              !0
         34        DO_FCALL                                      0  $23     
         35        CONCAT                                           ~24     ~20, $23
         36      > EXIT                                                     ~24
    9    37    >   INIT_FCALL_BY_NAME                                       'curl_error'
         38        SEND_VAR_EX                                              !1
         39        DO_FCALL                                      0  $25     
         40        STRLEN                                           ~26     $25
         41      > JMPZ                                                     ~26, ->48
         42    >   INIT_FCALL_BY_NAME                                       'curl_error'
         43        SEND_VAR_EX                                              !1
         44        DO_FCALL                                      0  $27     
         45        CONCAT                                           ~28     'curl+error%3A+%5B', $27
         46        CONCAT                                           ~29     ~28, '%5D%3Cbr%3E'
         47      > EXIT                                                     ~29
   10    48    >   INIT_FCALL_BY_NAME                                       'curl_getinfo'
         49        SEND_VAR_EX                                              !1
         50        DO_FCALL                                      0  $30     
         51        ASSIGN                                                   !4, $30
   11    52        FETCH_DIM_R                                      ~32     !4, 'http_code'
         53        IS_EQUAL                                                 ~32, 0
         54      > JMPZ                                                     ~33, ->57
         55    >   QM_ASSIGN                                        ~34     0
         56      > JMP                                                      ->58
         57    >   QM_ASSIGN                                        ~34     1
         58    >   ASSIGN                                                   !5, ~34
   12    59        INIT_FCALL_BY_NAME                                       'curl_multi_getcontent'
         60        SEND_VAR_EX                                              !1
         61        DO_FCALL                                      0  $36     
         62        ASSIGN                                                   !6, $36
   13    63        INIT_FCALL_BY_NAME                                       'curl_multi_remove_handle'
         64        SEND_VAR_EX                                              !0
         65        SEND_VAR_EX                                              !1
         66        DO_FCALL                                      0          
   14    67        INIT_FCALL_BY_NAME                                       'curl_close'
         68        SEND_VAR_EX                                              !1
         69        DO_FCALL                                      0          
   15    70        INIT_FCALL_BY_NAME                                       'curl_multi_close'
         71        SEND_VAR_EX                                              !0
         72        DO_FCALL                                      0          
         73      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.19 ms | 1399 KiB | 13 Q