3v4l.org

run code in 300+ PHP versions simultaneously
<?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/ia6qp
function name:  (null)
number of ops:  38
compiled vars:  !0 = $un, !1 = $pw, !2 = $client, !3 = $response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'define'
          1        SEND_VAL                                                 'TOKEN'
          2        SEND_VAL                                                 'quick'
          3        DO_ICALL                                                 
    6     4        INIT_FCALL                                               'define'
          5        SEND_VAL                                                 'SALT'
          6        SEND_VAL                                                 'bax5Oh0oY5e5oleukeDi33chTeek7eeyOhthoh5o8Au9ceisaTuk5koogXaih1uolAegu1ohgtieGha3akohLerei8Ju8lahw1o9SouwoOhsh4iphEj1veiru'
          7        DO_ICALL                                                 
    8     8        ASSIGN                                                   !0, 'your.user%40digilant.com'
    9     9        ASSIGN                                                   !1, 'your.pass'
   11    10        INIT_FCALL                                               'error_log'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
   12    13        INIT_FCALL                                               'error_log'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
   14    16        NEW                                              $10     'GuzzleHttp%5CClient'
         17        DO_FCALL                                      0          
         18        ASSIGN                                                   !2, $10
   17    19        INIT_METHOD_CALL                                         !2, 'post'
         20        SEND_VAL_EX                                              'http%3A%2F%2F10.20.10.251%2Fapi%2Flogin_check'
   18    21        INIT_ARRAY                                       ~13     <array>, 'headers'
   20    22        INIT_ARRAY                                       ~14     !0, '_username'
   21    23        ADD_ARRAY_ELEMENT                                ~14     !1, '_password'
         24        ADD_ARRAY_ELEMENT                                ~13     ~14, 'form_params'
   23    25        ADD_ARRAY_ELEMENT                                ~13     30, 'timeout'
   18    26        ADD_ARRAY_ELEMENT                                ~13     <true>, 'allow_redirects'
         27        SEND_VAL_EX                                              ~13
         28        DO_FCALL                                      0  $15     
   17    29        ASSIGN                                                   !3, $15
   28    30        INIT_FCALL                                               'var_dump'
         31        INIT_METHOD_CALL                                         !3, 'getBody'
         32        DO_FCALL                                      0  $17     
         33        INIT_METHOD_CALL                                         $17, 'getContents'
         34        DO_FCALL                                      0  $18     
         35        SEND_VAR                                                 $18
         36        DO_ICALL                                                 
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.77 ms | 1396 KiB | 19 Q