3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.26 ms | 1003 KiB | 14 Q