3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( 'submit' => 'submit', 'var' => array(1, 2) ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://www.domain.tld/script.php'); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, $data); echo curl_exec($ch);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1RmXT
function name:  (null)
number of ops:  27
compiled vars:  !0 = $data, !1 = $ch
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL_BY_NAME                                       'curl_init'
          2        DO_FCALL                                      0  $3      
          3        ASSIGN                                                   !1, $3
    9     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_VAL_EX                                              'http%3A%2F%2Fwww.domain.tld%2Fscript.php'
          9        DO_FCALL                                      0          
   10    10        INIT_FCALL_BY_NAME                                       'curl_setopt'
         11        SEND_VAR_EX                                              !1
         12        FETCH_CONSTANT                                   ~7      'CURLOPT_POST'
         13        SEND_VAL_EX                                              ~7
         14        SEND_VAL_EX                                              <true>
         15        DO_FCALL                                      0          
   11    16        INIT_FCALL_BY_NAME                                       'curl_setopt'
         17        SEND_VAR_EX                                              !1
         18        FETCH_CONSTANT                                   ~9      'CURLOPT_POSTFIELDS'
         19        SEND_VAL_EX                                              ~9
         20        SEND_VAR_EX                                              !0
         21        DO_FCALL                                      0          
   13    22        INIT_FCALL_BY_NAME                                       'curl_exec'
         23        SEND_VAR_EX                                              !1
         24        DO_FCALL                                      0  $11     
         25        ECHO                                                     $11
         26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.38 ms | 1394 KiB | 13 Q