3v4l.org

run code in 300+ PHP versions simultaneously
<?php $serverSeed = '8013f9fa199afdae4dc1907040541c2ea2d7b1d1bcb120a19f35e54b2294724b682d79dd29a80c63315ccd20c42b45e56f7889541347b5115e32bdc207a58d33'; $clientSeed = '1117f2bfec3f3c94204ada1e8f927139bb52bb07792e3f8f91216ed6bee444600bb22003de6d77c1f4b2df346e43cc4bcb87'; $nonce = 1; for($nonce =40; $nonce < 50; $nonce++){ $seed = $serverSeed.'-'.$clientSeed.'-'.$nonce; do { $seed = sha1($seed); $lucky = hexdec(substr($seed,0,8)); $result_seed = hash_hmac('sha512', $server_seed, $client_seed); $result_number = hexdec(substr($result_seed,0,10)); } while ($lucky > 4294960000); $luckyNumber = ($lucky % 10000) / 100; if ($luckyNumber < 0) $luckyNumber = -$luckyNumber; echo $result_seed; echo $result_number; echo $nonce.":".$luckyNumber; echo nl2br ("\n"); }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $server_seed in /in/GTAq5 on line 12 Warning: Undefined variable $client_seed in /in/GTAq5 on line 12 Deprecated: hash_hmac(): Passing null to parameter #2 ($data) of type string is deprecated in /in/GTAq5 on line 12 Deprecated: hash_hmac(): Passing null to parameter #3 ($key) of type string is deprecated in /in/GTAq5 on line 12 b936cee86c9f87aa5d3c6f2e84cb5a4239a5fe50480a6ec66b70ab5b1f4ac6730c6c515421b327ec1d69402e53dfb49ad7381eb067b338fd7b0cb22247225d4779548847934040:24.26<br /> Warning: Undefined variable $server_seed in /in/GTAq5 on line 12 Warning: Undefined variable $client_seed in /in/GTAq5 on line 12 Deprecated: hash_hmac(): Passing null to parameter #2 ($data) of type string is deprecated in /in/GTAq5 on line 12 Deprecated: hash_hmac(): Passing null to parameter #3 ($key) of type string is deprecated in /in/GTAq5 on line 12 b936cee86c9f87aa5d3c6f2e84cb5a4239a5fe50480a6ec66b70ab5b1f4ac6730c6c515421b327ec1d69402e53dfb49ad7381eb067b338fd7b0cb22247225d4779548847934041:60.68<br /> Warning: Undefined variable $server_seed in /in/GTAq5 on line 12 Warning: Undefined variable $client_seed in /in/GTAq5 on line 12 Deprecated: hash_hmac(): Passing null to parameter #2 ($data) of type string is deprecated in /in/GTAq5 on line 12 Deprecated: hash_hmac(): Passing null to parameter #3 ($key) of type string is deprecated in /in/GTAq5 on line 12 b936cee86c9f87aa5d3c6f2e84cb5a4239a5fe50480a6ec66b70ab5b1f4ac6730c6c515421b327ec1d69402e53dfb49ad7381eb067b338fd7b0cb22247225d4779548847934042:4.64<br /> Warning: Undefined variable $server_seed in /in/GTAq5 on line 12 Warning: Undefined variable $client_seed in /in/GTAq5 on line 12 Deprecated: hash_hmac(): Passing null to parameter #2 ($data) of type string is deprecated in /in/GTAq5 on line 12 Deprecated: hash_hmac(): Passing null to parameter #3 ($key) of type string is deprecated in /in/GTAq5 on line 12 b936cee86c9f87aa5d3c6f2e84cb5a4239a5fe50480a6ec66b70ab5b1f4ac6730c6c515421b327ec1d69402e53dfb49ad7381eb067b338fd7b0cb22247225d4779548847934043:13.88<br /> Warning: Undefined variable $server_seed in /in/GTAq5 on line 12 Warning: Undefined variable $client_seed in /in/GTAq5 on line 12 Deprecated: hash_hmac(): Passing null to parameter #2 ($data) of type string is deprecated in /in/GTAq5 on line 12 Deprecated: hash_hmac(): Passing null to parameter #3 ($key) of type string is deprecated in /in/GTAq5 on line 12 b936cee86c9f87aa5d3c6f2e84cb5a4239a5fe50480a6ec66b70ab5b1f4ac6730c6c515421b327ec1d69402e53dfb49ad7381eb067b338fd7b0cb22247225d4779548847934044:21.05<br /> Warning: Undefined variable $server_seed in /in/GTAq5 on line 12 Warning: Undefined variable $client_seed in /in/GTAq5 on line 12 Deprecated: hash_hmac(): Passing null to parameter #2 ($data) of type string is deprecated in /in/GTAq5 on line 12 Deprecated: hash_hmac(): Passing null to parameter #3 ($key) of type string is deprecated in /in/GTAq5 on line 12 b936cee86c9f87aa5d3c6f2e84cb5a4239a5fe50480a6ec66b70ab5b1f4ac6730c6c515421b327ec1d69402e53dfb49ad7381eb067b338fd7b0cb22247225d4779548847934045:99.13<br /> Warning: Undefined variable $server_seed in /in/GTAq5 on line 12 Warning: Undefined variable $client_seed in /in/GTAq5 on line 12 Deprecated: hash_hmac(): Passing null to parameter #2 ($data) of type string is deprecated in /in/GTAq5 on line 12 Deprecated: hash_hmac(): Passing null to parameter #3 ($key) of type string is deprecated in /in/GTAq5 on line 12 b936cee86c9f87aa5d3c6f2e84cb5a4239a5fe50480a6ec66b70ab5b1f4ac6730c6c515421b327ec1d69402e53dfb49ad7381eb067b338fd7b0cb22247225d4779548847934046:2.4<br /> Warning: Undefined variable $server_seed in /in/GTAq5 on line 12 Warning: Undefined variable $client_seed in /in/GTAq5 on line 12 Deprecated: hash_hmac(): Passing null to parameter #2 ($data) of type string is deprecated in /in/GTAq5 on line 12 Deprecated: hash_hmac(): Passing null to parameter #3 ($key) of type string is deprecated in /in/GTAq5 on line 12 b936cee86c9f87aa5d3c6f2e84cb5a4239a5fe50480a6ec66b70ab5b1f4ac6730c6c515421b327ec1d69402e53dfb49ad7381eb067b338fd7b0cb22247225d4779548847934047:67.9<br /> Warning: Undefined variable $server_seed in /in/GTAq5 on line 12 Warning: Undefined variable $client_seed in /in/GTAq5 on line 12 Deprecated: hash_hmac(): Passing null to parameter #2 ($data) of type string is deprecated in /in/GTAq5 on line 12 Deprecated: hash_hmac(): Passing null to parameter #3 ($key) of type string is deprecated in /in/GTAq5 on line 12 b936cee86c9f87aa5d3c6f2e84cb5a4239a5fe50480a6ec66b70ab5b1f4ac6730c6c515421b327ec1d69402e53dfb49ad7381eb067b338fd7b0cb22247225d4779548847934048:76.77<br /> Warning: Undefined variable $server_seed in /in/GTAq5 on line 12 Warning: Undefined variable $client_seed in /in/GTAq5 on line 12 Deprecated: hash_hmac(): Passing null to parameter #2 ($data) of type string is deprecated in /in/GTAq5 on line 12 Deprecated: hash_hmac(): Passing null to parameter #3 ($key) of type string is deprecated in /in/GTAq5 on line 12 b936cee86c9f87aa5d3c6f2e84cb5a4239a5fe50480a6ec66b70ab5b1f4ac6730c6c515421b327ec1d69402e53dfb49ad7381eb067b338fd7b0cb22247225d4779548847934049:37.61<br />

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
56.86 ms | 413 KiB | 8 Q