3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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 hhvm-3.15.4, 7.3.0alpha1
Warning: time() expects exactly 0 parameters, 1 given in /in/iL8uR on line 10 d5582437c05c706910daac8acccfea9b614594a4a97538fb8a15e0ee849f2c51
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.2.6
c70c47b7af4a8612d92f01893a1de42f7edd119f33fe66c0635ef8091027c820