3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Create a curl handle $ch = curl_init('http://www.yahoo.com/'); // Execute curl_exec($ch); // Check if any error occurred if(!curl_errno($ch)) { $info = curl_getinfo($ch); echo 'Took ' . $info['total_time'] . ' seconds to send a request to ' . $info['url']; } // Close handle curl_close($ch);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 22
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/ZFfWI
function name:  (null)
number of ops:  26
compiled vars:  !0 = $ch, !1 = $info
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL_BY_NAME                                       'curl_init'
          1        SEND_VAL_EX                                              'http%3A%2F%2Fwww.yahoo.com%2F'
          2        DO_FCALL                                      0  $2      
          3        ASSIGN                                                   !0, $2
    7     4        INIT_FCALL_BY_NAME                                       'curl_exec'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
   10     7        INIT_FCALL_BY_NAME                                       'curl_errno'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0  $5      
         10        BOOL_NOT                                         ~6      $5
         11      > JMPZ                                                     ~6, ->22
   12    12    >   INIT_FCALL_BY_NAME                                       'curl_getinfo'
         13        SEND_VAR_EX                                              !0
         14        DO_FCALL                                      0  $7      
         15        ASSIGN                                                   !1, $7
   14    16        FETCH_DIM_R                                      ~9      !1, 'total_time'
         17        CONCAT                                           ~10     'Took+', ~9
         18        CONCAT                                           ~11     ~10, '+seconds+to+send+a+request+to+'
         19        FETCH_DIM_R                                      ~12     !1, 'url'
         20        CONCAT                                           ~13     ~11, ~12
         21        ECHO                                                     ~13
   18    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:
151.25 ms | 1394 KiB | 13 Q