3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = 'bd531c1bab63761c3356eb9aade47c991cdec5db60bd4ccf035bb6fcc8d6e8e3'; $secret = 'c44d2a24965bcb88aaf63f08a79087d3940abc01c8064f72f18060dc07e5f373'; $path = '/network/list'; $nonce = 'ThisIsANonce'; $authorization = "key=" . $key . ",timestamp=" . time("2017-06-30T04:18:32Z") . ",nonce=" . $nonce; $signature = hash_hmac('sha256', $authorization . $path, $secret); echo $signature;
Output for 7.3.0
Warning: time() expects exactly 0 parameters, 1 given in /in/iL8uR on line 10 d5582437c05c706910daac8acccfea9b614594a4a97538fb8a15e0ee849f2c51
Output for 5.6.38, 7.0.0 - 7.0.33, 7.1.0 - 7.1.11, 7.1.13 - 7.1.25, 7.2.0 - 7.2.13
c70c47b7af4a8612d92f01893a1de42f7edd119f33fe66c0635ef8091027c820
Output for 7.1.12
c95ea9de889796eaea0694337684efa1ecdc3cf056da957328670ce4bb48a1eb

preferences:
84.09 ms | 401 KiB | 81 Q