3v4l.org

run code in 300+ PHP versions simultaneously
<?php function get_data($url) { $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 10); $data = curl_exec($ch); curl_close($ch); return $data; } echo get_data('http://tippspiel3sam.de'); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GmmLu
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'get_data'
          1        SEND_VAL                                                 'http%3A%2F%2Ftippspiel3sam.de'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
   14     4      > RETURN                                                   1

Function get_data:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GmmLu
function name:  get_data
number of ops:  31
compiled vars:  !0 = $url, !1 = $ch, !2 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        INIT_FCALL_BY_NAME                                       'curl_init'
          2        DO_FCALL                                      0  $3      
          3        ASSIGN                                                   !1, $3
    4     4        INIT_FCALL_BY_NAME                                       'curl_setopt'
          5        SEND_VAR_EX                                              !1
          6        FETCH_CONSTANT                                   ~5      'CURLOPT_URL'
          7        SEND_VAL_EX                                              ~5
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
    5    10        INIT_FCALL_BY_NAME                                       'curl_setopt'
         11        SEND_VAR_EX                                              !1
         12        FETCH_CONSTANT                                   ~7      'CURLOPT_RETURNTRANSFER'
         13        SEND_VAL_EX                                              ~7
         14        SEND_VAL_EX                                              1
         15        DO_FCALL                                      0          
    6    16        INIT_FCALL_BY_NAME                                       'curl_setopt'
         17        SEND_VAR_EX                                              !1
         18        FETCH_CONSTANT                                   ~9      'CURLOPT_CONNECTTIMEOUT'
         19        SEND_VAL_EX                                              ~9
         20        SEND_VAL_EX                                              10
         21        DO_FCALL                                      0          
    7    22        INIT_FCALL_BY_NAME                                       'curl_exec'
         23        SEND_VAR_EX                                              !1
         24        DO_FCALL                                      0  $11     
         25        ASSIGN                                                   !2, $11
    8    26        INIT_FCALL_BY_NAME                                       'curl_close'
         27        SEND_VAR_EX                                              !1
         28        DO_FCALL                                      0          
   10    29      > RETURN                                                   !2
   11    30*     > RETURN                                                   null

End of function get_data

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.56 ms | 1399 KiB | 14 Q