3v4l.org

run code in 300+ PHP versions simultaneously
<?php curl_setopt("http://www.google.com", CURLOPT_HEADER, 1); curl_setopt("http://www.google.com", CURLOPT_NOBODY, 1); curl_setopt("http://www.google.com", CURLOPT_RETURNTRANSFER, 1); curl_exec("http://www.google.com"); echo curl_getinfo("http://www.google.com", CURLINFO_CONTENT_LENGTH_DOWNLOAD); curl_close("http://www.google.com");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qk65Q
function name:  (null)
number of ops:  31
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'curl_setopt'
          1        SEND_VAL_EX                                              'http%3A%2F%2Fwww.google.com'
          2        FETCH_CONSTANT                                   ~0      'CURLOPT_HEADER'
          3        SEND_VAL_EX                                              ~0
          4        SEND_VAL_EX                                              1
          5        DO_FCALL                                      0          
    4     6        INIT_FCALL_BY_NAME                                       'curl_setopt'
          7        SEND_VAL_EX                                              'http%3A%2F%2Fwww.google.com'
          8        FETCH_CONSTANT                                   ~2      'CURLOPT_NOBODY'
          9        SEND_VAL_EX                                              ~2
         10        SEND_VAL_EX                                              1
         11        DO_FCALL                                      0          
    5    12        INIT_FCALL_BY_NAME                                       'curl_setopt'
         13        SEND_VAL_EX                                              'http%3A%2F%2Fwww.google.com'
         14        FETCH_CONSTANT                                   ~4      'CURLOPT_RETURNTRANSFER'
         15        SEND_VAL_EX                                              ~4
         16        SEND_VAL_EX                                              1
         17        DO_FCALL                                      0          
    6    18        INIT_FCALL_BY_NAME                                       'curl_exec'
         19        SEND_VAL_EX                                              'http%3A%2F%2Fwww.google.com'
         20        DO_FCALL                                      0          
    7    21        INIT_FCALL_BY_NAME                                       'curl_getinfo'
         22        SEND_VAL_EX                                              'http%3A%2F%2Fwww.google.com'
         23        FETCH_CONSTANT                                   ~7      'CURLINFO_CONTENT_LENGTH_DOWNLOAD'
         24        SEND_VAL_EX                                              ~7
         25        DO_FCALL                                      0  $8      
         26        ECHO                                                     $8
    8    27        INIT_FCALL_BY_NAME                                       'curl_close'
         28        SEND_VAL_EX                                              'http%3A%2F%2Fwww.google.com'
         29        DO_FCALL                                      0          
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.36 ms | 1395 KiB | 13 Q