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());
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Warning: require(): open_basedir restriction in effect. File(/in/../../vendor/autoload.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/5MpeP on line 3 Warning: require(/in/../../vendor/autoload.php): Failed to open stream: Operation not permitted in /in/5MpeP on line 3 Fatal error: Uncaught Error: Failed opening required '/in/../../vendor/autoload.php' (include_path='.:') in /in/5MpeP:3 Stack trace: #0 {main} thrown in /in/5MpeP on line 3
Process exited with code 255.
Output for 8.0.13
Warning: require(/in/../../vendor/autoload.php): Failed to open stream: No such file or directory in /in/5MpeP on line 3 Fatal error: Uncaught Error: Failed opening required '/in/../../vendor/autoload.php' (include_path='.:') in /in/5MpeP:3 Stack trace: #0 {main} thrown in /in/5MpeP on line 3
Process exited with code 255.
Output for 5.4.0 - 5.4.45, 7.3.32 - 7.3.33, 7.4.33
Warning: require(/in/../../vendor/autoload.php): failed to open stream: No such file or directory in /in/5MpeP on line 3 Fatal error: require(): Failed opening required '/in/../../vendor/autoload.php' (include_path='.:') in /in/5MpeP on line 3
Process exited with code 255.
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.32
Warning: require(): open_basedir restriction in effect. File(/in/../../vendor/autoload.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/5MpeP on line 3 Warning: require(/in/../../vendor/autoload.php): failed to open stream: Operation not permitted in /in/5MpeP on line 3 Fatal error: require(): Failed opening required '/in/../../vendor/autoload.php' (include_path='.:') in /in/5MpeP on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/5MpeP on line 19
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Parse error: syntax error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /in/5MpeP on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_STRING, expecting T_CONSTANT_ENCAPSED_STRING or '(' in /in/5MpeP on line 5
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `T_CONSTANT_ENCAPSED_STRING' or `'('' in /in/5MpeP on line 5
Process exited with code 255.

preferences:
347.42 ms | 401 KiB | 459 Q