sdz - PHP Online

Form of PHP Sandbox

Enter Your PHP code here for testing/debugging in the Online PHP Sandbox. As in the usual PHP files, you can also add HTML, but do not forget to add the tag <?php in the places where the PHP script should be executed.



Your result can be seen below.

Result of php executing





Full code of sdz.php

  1. <?php
  2. $client = new Client();
  3. $headers = [
  4.   'X-Forwarded-For' => '185.220.82.254',
  5.   'Authorization' => 'Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwczovL2Rldi5sYWJrZXkuaXQvYXBpL3YyL2F1dGhvcml6ZSIsImlhdCI6MTY2NDI4ODI1NywiZXhwIjoxNjY0MjkxODU3LCJuYmYiOjE2NjQyODgyNTcsImp0aSI6InMxbHBNWnBmejF0QnNSRzciLCJzdWIiOjMsInBydiI6Ijg3ZTBhZjFlZjlmZDE1ODEyZmRlYzk3MTUzYTE0ZTBiMDQ3NTQ2YWEifQ.UwOMMpcfiKRkzQBgyQ_BFzn53S82ZFqnyQeOiCEmAWA'
  6. ];
  7. $request = new Request('PUT', 'https://dev.labkey.it/api/v2/adduser?name=Mauro&surname=Rossi', $headers);
  8. $res = $client->sendAsync($request)->wait();
  9. echo $res->getBody();
  10.  
  11.  
File Description
  • sdz
  • PHP Code
  • 27 Sep-2022
  • 615 Bytes
You can Share it: