3v4l.org

run code in 300+ PHP versions simultaneously
<?php $api_key = '552542759d42133d1b37023c2baf36ca6871d006'; $now = new DateTime(); $url = "https://sellercenter-api.linio.com.mx/?"; $parameters = array( 'UserID' => 'john.doe@company.comd', 'Version' => '1.0', 'Action' => 'FeedList', 'Timestamp' => $now->format(DateTime::ISO8601), ); // Sort parameters by name ksort($parameters); $params = array(); foreach ($parameters as $name => $value) { $params[] = rawurlencode($name) . '=' . rawurlencode($value); } $strToSign = implode('&', $params); // Compute signature and add it to the parameters $parameters['Signature'] = rawurlencode(hash_hmac('sha256', $strToSign, $api_key, false)); echo $parameters['Signature'];
Output for git.master, git.master_jit, rfc.property-hooks
22d2ff8f01edc859811cbf88e702a039528fa8c54793f31e4b85621c07e677bf

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:
51.48 ms | 401 KiB | 8 Q