3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ch = curl_init(); // set url curl_setopt($ch, CURLOPT_URL, "google.com"); //return the transfer as a string curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); // $output contains the output string $output = curl_exec($ch); // close curl resource to free up system resources curl_close($ch); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/pRGSs
function name:  (null)
number of ops:  23
compiled vars:  !0 = $ch, !1 = $output
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
    5     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                                              'google.com'
          8        DO_FCALL                                      0          
    8     9        INIT_FCALL_BY_NAME                                       'curl_setopt'
         10        SEND_VAR_EX                                              !0
         11        FETCH_CONSTANT                                   ~6      'CURLOPT_RETURNTRANSFER'
         12        SEND_VAL_EX                                              ~6
         13        SEND_VAL_EX                                              1
         14        DO_FCALL                                      0          
   11    15        INIT_FCALL_BY_NAME                                       'curl_exec'
         16        SEND_VAR_EX                                              !0
         17        DO_FCALL                                      0  $8      
         18        ASSIGN                                                   !1, $8
   14    19        INIT_FCALL_BY_NAME                                       'curl_close'
         20        SEND_VAR_EX                                              !0
         21        DO_FCALL                                      0          
   15    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.47 ms | 1394 KiB | 13 Q