3v4l.org

run code in 300+ PHP versions simultaneously
<?php $download = curl_init("http://i.ytimg.com/vi/YuPaeU0VEX4/maxresdefault.jpg"); curl_setopt($download, CURLOPT_RETURNTRANSFER, 1); curl_setopt($download, CURLOPT_TIMEOUT, 20); curl_setopt($download,CURLOPT_HTTPHEADER,array( 'User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0.1) Gecko/20100101 Firefox/9.0.1', 'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8', 'Accept-Language: ru-ru,ru;q=0.8,en-us;q=0.5,en;q=0.3', 'Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7', 'Connection: keep-alive', 'Pragma: no-cache', 'Cache-Control: no-cache' )); $image_file = curl_exec($download); curl_close($download); var_dump($image_file);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/C4LUg
function name:  (null)
number of ops:  33
compiled vars:  !0 = $download, !1 = $image_file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL_BY_NAME                                       'curl_init'
          1        SEND_VAL_EX                                              'http%3A%2F%2Fi.ytimg.com%2Fvi%2FYuPaeU0VEX4%2Fmaxresdefault.jpg'
          2        DO_FCALL                                      0  $2      
          3        ASSIGN                                                   !0, $2
    4     4        INIT_FCALL_BY_NAME                                       'curl_setopt'
          5        SEND_VAR_EX                                              !0
          6        FETCH_CONSTANT                                   ~4      'CURLOPT_RETURNTRANSFER'
          7        SEND_VAL_EX                                              ~4
          8        SEND_VAL_EX                                              1
          9        DO_FCALL                                      0          
    5    10        INIT_FCALL_BY_NAME                                       'curl_setopt'
         11        SEND_VAR_EX                                              !0
         12        FETCH_CONSTANT                                   ~6      'CURLOPT_TIMEOUT'
         13        SEND_VAL_EX                                              ~6
         14        SEND_VAL_EX                                              20
         15        DO_FCALL                                      0          
    6    16        INIT_FCALL_BY_NAME                                       'curl_setopt'
         17        SEND_VAR_EX                                              !0
         18        FETCH_CONSTANT                                   ~8      'CURLOPT_HTTPHEADER'
         19        SEND_VAL_EX                                              ~8
    7    20        SEND_VAL_EX                                              <array>
         21        DO_FCALL                                      0          
   15    22        INIT_FCALL_BY_NAME                                       'curl_exec'
         23        SEND_VAR_EX                                              !0
         24        DO_FCALL                                      0  $10     
         25        ASSIGN                                                   !1, $10
   16    26        INIT_FCALL_BY_NAME                                       'curl_close'
         27        SEND_VAR_EX                                              !0
         28        DO_FCALL                                      0          
   18    29        INIT_FCALL                                               'var_dump'
         30        SEND_VAR                                                 !1
         31        DO_ICALL                                                 
         32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.74 ms | 1388 KiB | 15 Q