3v4l.org

run code in 300+ PHP versions simultaneously
<?php # Create a connection $url = 'https://graph.facebook.com'; $ch = curl_init($url); # Form data string $postString = http_build_query($data, '', '&'); # Setting our options curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, $postString); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); # Get the response $response = curl_exec($ch); curl_close($ch);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DqYZP
function name:  (null)
number of ops:  37
compiled vars:  !0 = $url, !1 = $ch, !2 = $postString, !3 = $data, !4 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fgraph.facebook.com'
    5     1        INIT_FCALL_BY_NAME                                       'curl_init'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $6      
          4        ASSIGN                                                   !1, $6
    7     5        INIT_FCALL                                               'http_build_query'
          6        SEND_VAR                                                 !3
          7        SEND_VAL                                                 ''
          8        SEND_VAL                                                 '%26'
          9        DO_ICALL                                         $8      
         10        ASSIGN                                                   !2, $8
    9    11        INIT_FCALL_BY_NAME                                       'curl_setopt'
         12        SEND_VAR_EX                                              !1
         13        FETCH_CONSTANT                                   ~10     'CURLOPT_POST'
         14        SEND_VAL_EX                                              ~10
         15        SEND_VAL_EX                                              1
         16        DO_FCALL                                      0          
   10    17        INIT_FCALL_BY_NAME                                       'curl_setopt'
         18        SEND_VAR_EX                                              !1
         19        FETCH_CONSTANT                                   ~12     'CURLOPT_POSTFIELDS'
         20        SEND_VAL_EX                                              ~12
         21        SEND_VAR_EX                                              !2
         22        DO_FCALL                                      0          
   11    23        INIT_FCALL_BY_NAME                                       'curl_setopt'
         24        SEND_VAR_EX                                              !1
         25        FETCH_CONSTANT                                   ~14     'CURLOPT_RETURNTRANSFER'
         26        SEND_VAL_EX                                              ~14
         27        SEND_VAL_EX                                              <true>
         28        DO_FCALL                                      0          
   13    29        INIT_FCALL_BY_NAME                                       'curl_exec'
         30        SEND_VAR_EX                                              !1
         31        DO_FCALL                                      0  $16     
         32        ASSIGN                                                   !4, $16
   14    33        INIT_FCALL_BY_NAME                                       'curl_close'
         34        SEND_VAR_EX                                              !1
         35        DO_FCALL                                      0          
         36      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.32 ms | 1396 KiB | 15 Q