rrr - 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 rrr.php

  1. <?php
  2.  
  3. $sample = "b87741443937c0ed0eb7998c9536889cc7f5e5fc";
  4.  
  5. $salt = "R(D*#4mmd9";
  6. $data = [
  7.             "versionFormat" => 1,
  8.             "versionSalt" => 1,
  9.  
  10.             "timestamp" => 1625788753,
  11.             "ip" => "115.164.52.235",
  12.             "useragent" => "Mozilla/5.0 (Linux; Android 11; vivo 1906) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36",
  13.             "url" => "",
  14.             "userId" => 0,
  15.             "statsId" => 762683,
  16.             "statsUid" => "60e5b5c5f11b-baa01f-72b5f0"
  17.         ];
  18.  
  19.  
  20.  
  21. $result = hash_hmac('sha1', json_encode(array_values($data), JSON_UNESCAPED_SLASHES), $salt);
  22.  
  23. print_r($sample); echo "<br/>";
  24. print_r($result); echo "<br/>";
  25. var_dump($sample == $result);
File Description
  • rrr
  • PHP Code
  • 13 Jul-2021
  • 734 Bytes
You can Share it: