3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.hedg.fr/hedgdeusacademia/bla/chat.php'; $data = array('qui' => '2', 'text' => 'Tu es en train de craquer... vite, un câlin ! (hug) Bon... ça marche de moins en moins, il faudra que je fasse des corrections ce soir pour que ça marche mieux... ._.'); // use key 'http' even if you send the request to https://... $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', 'content' => http_build_query($data), ), ); $context = stream_context_create($options); $result = file_get_contents($url, false, $context); var_dump($result); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XJWoe
function name:  (null)
number of ops:  24
compiled vars:  !0 = $url, !1 = $data, !2 = $options, !3 = $context, !4 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'http%3A%2F%2Fwww.hedg.fr%2Fhedgdeusacademia%2Fbla%2Fchat.php'
    3     1        ASSIGN                                                   !1, <array>
    6     2        INIT_ARRAY                                       ~7      'Content-type%3A+application%2Fx-www-form-urlencoded%0D%0A', 'header'
          3        ADD_ARRAY_ELEMENT                                ~7      'POST', 'method'
          4        INIT_FCALL                                               'http_build_query'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $8      
          7        ADD_ARRAY_ELEMENT                                ~7      $8, 'content'
          8        INIT_ARRAY                                       ~9      ~7, 'http'
          9        ASSIGN                                                   !2, ~9
    7    10        INIT_FCALL                                               'stream_context_create'
         11        SEND_VAR                                                 !2
         12        DO_ICALL                                         $11     
         13        ASSIGN                                                   !3, $11
    8    14        INIT_FCALL                                               'file_get_contents'
         15        SEND_VAR                                                 !0
         16        SEND_VAL                                                 <false>
         17        SEND_VAR                                                 !3
         18        DO_ICALL                                         $13     
         19        ASSIGN                                                   !4, $13
    9    20        INIT_FCALL                                               'var_dump'
         21        SEND_VAR                                                 !4
         22        DO_ICALL                                                 
   11    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
215.74 ms | 1395 KiB | 21 Q