3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
192.96 ms | 1387 KiB | 17 Q