3v4l.org

run code in 300+ PHP versions simultaneously
<?php $address = 'https://demo45-pl.yourtechnicaldomain.com/customer-api/?gate=Authenticate/authenticate/7/json'; // SHA1 ile sistem anahtarını oluştur $hashedKey = sha1(date('Ymd') . sha1('YOUR_KEY')); $request = array( "authenticate" => array( "systemKey" => $hashedKey, "systemLogin" => "systemLogin" ) ); // JSON formatına çevir $request_json = json_encode($request); // HTTP isteği için header ayarları $options = array( 'http' => array( 'header' => "Content-Type: application/json\r\n" . "Accept: application/json\r\n", 'method' => 'POST', 'content' => $request_json, 'ignore_errors' => true // Hata kodlarını da oku ) ); $context = stream_context_create($options); $response = file_get_contents($address, false, $context); if ($response === FALSE) { die('Hata: Sunucuya bağlanılamadı.'); } // Sonucu ekrana yazdır echo "Response:\n"; echo $response;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 38, Position 2 = 39
Branch analysis from position: 38
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kTcA9
function name:  (null)
number of ops:  42
compiled vars:  !0 = $address, !1 = $hashedKey, !2 = $request, !3 = $request_json, !4 = $options, !5 = $context, !6 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'https%3A%2F%2Fdemo45-pl.yourtechnicaldomain.com%2Fcustomer-api%2F%3Fgate%3DAuthenticate%2Fauthenticate%2F7%2Fjson'
    6     1        INIT_FCALL                                               'sha1'
          2        INIT_FCALL                                               'date'
          3        SEND_VAL                                                 'Ymd'
          4        DO_ICALL                                         $8      
          5        INIT_FCALL                                               'sha1'
          6        SEND_VAL                                                 'YOUR_KEY'
          7        DO_ICALL                                         $9      
          8        CONCAT                                           ~10     $8, $9
          9        SEND_VAL                                                 ~10
         10        DO_ICALL                                         $11     
         11        ASSIGN                                                   !1, $11
   10    12        INIT_ARRAY                                       ~13     !1, 'systemKey'
   11    13        ADD_ARRAY_ELEMENT                                ~13     'systemLogin', 'systemLogin'
         14        INIT_ARRAY                                       ~14     ~13, 'authenticate'
    8    15        ASSIGN                                                   !2, ~14
   16    16        INIT_FCALL                                               'json_encode'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                         $16     
         19        ASSIGN                                                   !3, $16
   22    20        INIT_ARRAY                                       ~18     'Content-Type%3A+application%2Fjson%0D%0AAccept%3A+application%2Fjson%0D%0A', 'header'
   23    21        ADD_ARRAY_ELEMENT                                ~18     'POST', 'method'
   24    22        ADD_ARRAY_ELEMENT                                ~18     !3, 'content'
   22    23        ADD_ARRAY_ELEMENT                                ~18     <true>, 'ignore_errors'
         24        INIT_ARRAY                                       ~19     ~18, 'http'
   19    25        ASSIGN                                                   !4, ~19
   29    26        INIT_FCALL                                               'stream_context_create'
         27        SEND_VAR                                                 !4
         28        DO_ICALL                                         $21     
         29        ASSIGN                                                   !5, $21
   30    30        INIT_FCALL                                               'file_get_contents'
         31        SEND_VAR                                                 !0
         32        SEND_VAL                                                 <false>
         33        SEND_VAR                                                 !5
         34        DO_ICALL                                         $23     
         35        ASSIGN                                                   !6, $23
   32    36        TYPE_CHECK                                    4          !6
         37      > JMPZ                                                     ~25, ->39
   33    38    > > EXIT                                                     'Hata%3A+Sunucuya+ba%C4%9Flan%C4%B1lamad%C4%B1.'
   37    39    >   ECHO                                                     'Response%3A%0A'
   38    40        ECHO                                                     !6
   39    41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.41 ms | 973 KiB | 18 Q