3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'triathlon.evenementsapq.ca/espresso-api/v1/authenticate?username=evenements&password=!Poumon123'; $data = array('key1' => 'value1', 'key2' => 'value2'); // 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', ), ); $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/leLsu
function name:  (null)
number of ops:  17
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, 'triathlon.evenementsapq.ca%2Fespresso-api%2Fv1%2Fauthenticate%3Fusername%3Devenements%26password%3D%21Poumon123'
    3     1        ASSIGN                                                   !1, <array>
    6     2        ASSIGN                                                   !2, <array>
   12     3        INIT_FCALL                                               'stream_context_create'
          4        SEND_VAR                                                 !2
          5        DO_ICALL                                         $8      
          6        ASSIGN                                                   !3, $8
   13     7        INIT_FCALL                                               'file_get_contents'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 <false>
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                         $10     
         12        ASSIGN                                                   !4, $10
   15    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !4
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.97 ms | 1394 KiB | 19 Q