3v4l.org

run code in 300+ PHP versions simultaneously
<?php $curl = curl_init("http://www.google.com/"); curl_setopt($curl, CURLOPT_HEADER, 0); curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1); $source_code = curl_exec($curl); curl_close($curl); var_dump($source_code);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Aa6Ca
function name:  (null)
number of ops:  27
compiled vars:  !0 = $curl, !1 = $source_code
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
    4     4        INIT_FCALL_BY_NAME                                       'curl_setopt'
          5        SEND_VAR_EX                                              !0
          6        FETCH_CONSTANT                                   ~4      'CURLOPT_HEADER'
          7        SEND_VAL_EX                                              ~4
          8        SEND_VAL_EX                                              0
          9        DO_FCALL                                      0          
    5    10        INIT_FCALL_BY_NAME                                       'curl_setopt'
         11        SEND_VAR_EX                                              !0
         12        FETCH_CONSTANT                                   ~6      'CURLOPT_RETURNTRANSFER'
         13        SEND_VAL_EX                                              ~6
         14        SEND_VAL_EX                                              1
         15        DO_FCALL                                      0          
    6    16        INIT_FCALL_BY_NAME                                       'curl_exec'
         17        SEND_VAR_EX                                              !0
         18        DO_FCALL                                      0  $8      
         19        ASSIGN                                                   !1, $8
    7    20        INIT_FCALL_BY_NAME                                       'curl_close'
         21        SEND_VAR_EX                                              !0
         22        DO_FCALL                                      0          
    9    23        INIT_FCALL                                               'var_dump'
         24        SEND_VAR                                                 !1
         25        DO_ICALL                                                 
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.39 ms | 1395 KiB | 15 Q