3v4l.org

run code in 300+ PHP versions simultaneously
<?php require __DIR__.'/../../vendor/autoload.php'; use GuzzleHttp\Client; define("TOKEN",'quick'); define("SALT",'bax5Oh0oY5e5oleukeDi33chTeek7eeyOhthoh5o8Au9ceisaTuk5koogXaih1uolAegu1ohgtieGha3akohLerei8Ju8lahw1o9SouwoOhsh4iphEj1veiru'); $un = "your.user@digilant.com"; $pw = 'your.pass'; error_log($un); error_log($pw); $client = new Client(); /* @var GuzzleHttp\Psr7\Response $response */ $response = $client->post('http://10.20.10.251/api/login_check', [ 'headers' => [], 'form_params' => [ '_username' => $un, '_password' => $pw ], 'timeout' => 30, 'allow_redirects' => true, ]); // here the body -> must to be converted with json_decode(...,true) var_dump($response->getBody()->getContents());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5MpeP
function name:  (null)
number of ops:  39
compiled vars:  !0 = $un, !1 = $pw, !2 = $client, !3 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INCLUDE_OR_EVAL                                          '%2Fin%2F..%2F..%2Fvendor%2Fautoload.php', REQUIRE
    7     1        INIT_FCALL                                               'define'
          2        SEND_VAL                                                 'TOKEN'
          3        SEND_VAL                                                 'quick'
          4        DO_ICALL                                                 
    8     5        INIT_FCALL                                               'define'
          6        SEND_VAL                                                 'SALT'
          7        SEND_VAL                                                 'bax5Oh0oY5e5oleukeDi33chTeek7eeyOhthoh5o8Au9ceisaTuk5koogXaih1uolAegu1ohgtieGha3akohLerei8Ju8lahw1o9SouwoOhsh4iphEj1veiru'
          8        DO_ICALL                                                 
   10     9        ASSIGN                                                   !0, 'your.user%40digilant.com'
   11    10        ASSIGN                                                   !1, 'your.pass'
   13    11        INIT_FCALL                                               'error_log'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
   14    14        INIT_FCALL                                               'error_log'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
   16    17        NEW                                              $11     'GuzzleHttp%5CClient'
         18        DO_FCALL                                      0          
         19        ASSIGN                                                   !2, $11
   19    20        INIT_METHOD_CALL                                         !2, 'post'
         21        SEND_VAL_EX                                              'http%3A%2F%2F10.20.10.251%2Fapi%2Flogin_check'
   20    22        INIT_ARRAY                                       ~14     <array>, 'headers'
   22    23        INIT_ARRAY                                       ~15     !0, '_username'
   23    24        ADD_ARRAY_ELEMENT                                ~15     !1, '_password'
         25        ADD_ARRAY_ELEMENT                                ~14     ~15, 'form_params'
   25    26        ADD_ARRAY_ELEMENT                                ~14     30, 'timeout'
   20    27        ADD_ARRAY_ELEMENT                                ~14     <true>, 'allow_redirects'
         28        SEND_VAL_EX                                              ~14
         29        DO_FCALL                                      0  $16     
   19    30        ASSIGN                                                   !3, $16
   30    31        INIT_FCALL                                               'var_dump'
         32        INIT_METHOD_CALL                                         !3, 'getBody'
         33        DO_FCALL                                      0  $18     
         34        INIT_METHOD_CALL                                         $18, 'getContents'
         35        DO_FCALL                                      0  $19     
         36        SEND_VAR                                                 $19
         37        DO_ICALL                                                 
         38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.11 ms | 1396 KiB | 19 Q