3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ch = curl_init('http://www.autonavigator.ru/dispatcher.pl'); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt ($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/38.0.2125.104 Safari/537.36"); $headers = array ( 'Accept: application/json', 'Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.6,en;q=0.4', 'Accept-Encoding: gzip,deflate', 'Accept-Charset: windows-1251,utf-8;q=0.7,*;q=0.7' ); curl_setopt($ch, CURLOPT_HTTPHEADER,$headers); curl_setopt($ch, CURLOPT_REFERER, "http://www.autonavigator.ru/my/offer_add/"); curl_setopt($ch, CURLOPT_POSTFIELDS, 'class=list&method=make&show_all=1&vehicle=car&type=used'); $result = curl_exec($ch); curl_close($ch); var_dump($result);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/A5lGq
function name:  (null)
number of ops:  46
compiled vars:  !0 = $ch, !1 = $headers, !2 = $result
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.autonavigator.ru%2Fdispatcher.pl'
          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_POST'
          7        SEND_VAL_EX                                              ~5
          8        SEND_VAL_EX                                              1
          9        DO_FCALL                                      0          
    4    10        INIT_FCALL_BY_NAME                                       'curl_setopt'
         11        SEND_VAR_EX                                              !0
         12        FETCH_CONSTANT                                   ~7      'CURLOPT_USERAGENT'
         13        SEND_VAL_EX                                              ~7
         14        SEND_VAL_EX                                              'Mozilla%2F5.0+%28Windows+NT+6.1%3B+WOW64%29+AppleWebKit%2F537.36+%28KHTML%2C+like+Gecko%29+Chrome%2F38.0.2125.104+Safari%2F537.36'
         15        DO_FCALL                                      0          
    5    16        ASSIGN                                                   !1, <array>
   13    17        INIT_FCALL_BY_NAME                                       'curl_setopt'
         18        SEND_VAR_EX                                              !0
         19        FETCH_CONSTANT                                   ~10     'CURLOPT_HTTPHEADER'
         20        SEND_VAL_EX                                              ~10
         21        SEND_VAR_EX                                              !1
         22        DO_FCALL                                      0          
   14    23        INIT_FCALL_BY_NAME                                       'curl_setopt'
         24        SEND_VAR_EX                                              !0
         25        FETCH_CONSTANT                                   ~12     'CURLOPT_REFERER'
         26        SEND_VAL_EX                                              ~12
         27        SEND_VAL_EX                                              'http%3A%2F%2Fwww.autonavigator.ru%2Fmy%2Foffer_add%2F'
         28        DO_FCALL                                      0          
   15    29        INIT_FCALL_BY_NAME                                       'curl_setopt'
         30        SEND_VAR_EX                                              !0
         31        FETCH_CONSTANT                                   ~14     'CURLOPT_POSTFIELDS'
         32        SEND_VAL_EX                                              ~14
         33        SEND_VAL_EX                                              'class%3Dlist%26method%3Dmake%26show_all%3D1%26vehicle%3Dcar%26type%3Dused'
         34        DO_FCALL                                      0          
   17    35        INIT_FCALL_BY_NAME                                       'curl_exec'
         36        SEND_VAR_EX                                              !0
         37        DO_FCALL                                      0  $16     
         38        ASSIGN                                                   !2, $16
   18    39        INIT_FCALL_BY_NAME                                       'curl_close'
         40        SEND_VAR_EX                                              !0
         41        DO_FCALL                                      0          
   20    42        INIT_FCALL                                               'var_dump'
         43        SEND_VAR                                                 !2
         44        DO_ICALL                                                 
         45      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.6 ms | 1392 KiB | 15 Q