3v4l.org

run code in 300+ PHP versions simultaneously
<?php $headers = array( "GET /HTTP/1.1", "User-Agent:Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.143 Safari/537.36", "Content-type: application/x-www-form-urlencoded; charset=UTF-8", "Accept: */*;", "Accept-Charset: utf-8;q=0.7,*;q=0.7", "Keep-Alive: 300", "Origin: http://www.mcdo-nantes.fr", "Host: www.mcdo-nantes.fr", "Referer: http://www.mcdo-nantes.fr/chevire/", "X-Requested-With XMLHttpRequest", "Connection: keep-alive" ); $ch = curl_init(); $postdata = "call=getSlotWin&finalNumbers[]=5&finalNumbers[]=5&finalNumbers[]=5"; curl_setopt($ch,CURLOPT_URL,"http://www.mcdo-nantes.fr/wp-content/themes/mcdo/slot.php"); curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "POST"); // curl_setopt($ch,CURLOPT_RETURNTRANSFER,true); curl_setopt($ch, CURLOPT_POST, 4); curl_setopt($ch, CURLOPT_HTTPHEADER, $headers); curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata ); $output=curl_exec($ch); var_dump($output);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/dnoDZ
function name:  (null)
number of ops:  43
compiled vars:  !0 = $headers, !1 = $ch, !2 = $postdata, !3 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   17     1        INIT_FCALL_BY_NAME                                       'curl_init'
          2        DO_FCALL                                      0  $5      
          3        ASSIGN                                                   !1, $5
   18     4        ASSIGN                                                   !2, 'call%3DgetSlotWin%26finalNumbers%5B%5D%3D5%26finalNumbers%5B%5D%3D5%26finalNumbers%5B%5D%3D5'
   19     5        INIT_FCALL_BY_NAME                                       'curl_setopt'
          6        SEND_VAR_EX                                              !1
          7        FETCH_CONSTANT                                   ~8      'CURLOPT_URL'
          8        SEND_VAL_EX                                              ~8
          9        SEND_VAL_EX                                              'http%3A%2F%2Fwww.mcdo-nantes.fr%2Fwp-content%2Fthemes%2Fmcdo%2Fslot.php'
         10        DO_FCALL                                      0          
   20    11        INIT_FCALL_BY_NAME                                       'curl_setopt'
         12        SEND_VAR_EX                                              !1
         13        FETCH_CONSTANT                                   ~10     'CURLOPT_CUSTOMREQUEST'
         14        SEND_VAL_EX                                              ~10
         15        SEND_VAL_EX                                              'POST'
         16        DO_FCALL                                      0          
   22    17        INIT_FCALL_BY_NAME                                       'curl_setopt'
         18        SEND_VAR_EX                                              !1
         19        FETCH_CONSTANT                                   ~12     'CURLOPT_POST'
         20        SEND_VAL_EX                                              ~12
         21        SEND_VAL_EX                                              4
         22        DO_FCALL                                      0          
   23    23        INIT_FCALL_BY_NAME                                       'curl_setopt'
         24        SEND_VAR_EX                                              !1
         25        FETCH_CONSTANT                                   ~14     'CURLOPT_HTTPHEADER'
         26        SEND_VAL_EX                                              ~14
         27        SEND_VAR_EX                                              !0
         28        DO_FCALL                                      0          
   24    29        INIT_FCALL_BY_NAME                                       'curl_setopt'
         30        SEND_VAR_EX                                              !1
         31        FETCH_CONSTANT                                   ~16     'CURLOPT_POSTFIELDS'
         32        SEND_VAL_EX                                              ~16
         33        SEND_VAR_EX                                              !2
         34        DO_FCALL                                      0          
   25    35        INIT_FCALL_BY_NAME                                       'curl_exec'
         36        SEND_VAR_EX                                              !1
         37        DO_FCALL                                      0  $18     
         38        ASSIGN                                                   !3, $18
   27    39        INIT_FCALL                                               'var_dump'
         40        SEND_VAR                                                 !3
         41        DO_ICALL                                                 
         42      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
190.2 ms | 1400 KiB | 15 Q