3v4l.org

run code in 300+ PHP versions simultaneously
<?php $params = array( 'appid' => 10647, 'apikey' => '5ce0020a-efa7-1180-2339-b6a6-9800fcff', 'secretkey' => 'QFwpPRp+g7Zdr9p5LwvPlG4WEh7XFJ1WupsO/Uu9GPRXxXqnGoodfERyuOo4', 'timestamp' => 1408522094, ); ksort($params);//对数组键值进行升序排序 $param_uri = http_build_query($params,'','&'); echo $param_uri; echo base64_encode(hash_hmac('sha1', 'apikey=5ce0020a-efa7-1180-2339-b6a6-9800fcff&appid=10647&secretkey=QFwpPRp%2Bg7Zdr9p5LwvPlG4WEh7XFJ1WupsO%2FUu9GPRXxXqnGoodfERyuOo4&timestamp=1408522094', $secretkey));
Output for git.master, git.master_jit, rfc.property-hooks
apikey=5ce0020a-efa7-1180-2339-b6a6-9800fcff&appid=10647&secretkey=QFwpPRp%2Bg7Zdr9p5LwvPlG4WEh7XFJ1WupsO%2FUu9GPRXxXqnGoodfERyuOo4&timestamp=1408522094 Warning: Undefined variable $secretkey in /in/mcqja on line 11 Deprecated: hash_hmac(): Passing null to parameter #3 ($key) of type string is deprecated in /in/mcqja on line 11 YjI5NzVmMGMzMjQ0MTFhMzFkMTE2MjhiZGIxMmU4MTUwMzZkMzhkMg==

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:
55.07 ms | 402 KiB | 8 Q