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.
Result of php executing
Full code of rrr.php
- <?php
- $sample = "b87741443937c0ed0eb7998c9536889cc7f5e5fc";
- $salt = "R(D*#4mmd9";
- $data = [
- "versionFormat" => 1,
- "versionSalt" => 1,
- "timestamp" => 1625788753,
- "ip" => "115.164.52.235",
- "useragent" => "Mozilla/5.0 (Linux; Android 11; vivo 1906) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.106 Mobile Safari/537.36",
- "url" => "",
- "userId" => 0,
- "statsId" => 762683,
- "statsUid" => "60e5b5c5f11b-baa01f-72b5f0"
- ];
- $result = hash_hmac('sha1', json_encode(array_values($data), JSON_UNESCAPED_SLASHES), $salt);
- print_r($sample); echo "<br/>";
- print_r($result); echo "<br/>";
- var_dump($sample == $result);
File Description
- rrr
- PHP Code
- 13 Jul-2021
- 734 Bytes
You can Share it:
Latest PHP Pastes