3v4l.org

run code in 300+ PHP versions simultaneously
<?php $parametersForSign = array( 'merchant-pos-id' => '185641', 'shop-name' => 'Název obchodu', 'total-amount' => '9.99', 'currency-code' => 'CZK', 'customer-language' => 'cs', 'payment-type' => 'card', 'customer-email' => 'email@exampledomain.com', ); $privateKey = 'db96e2ee781bb2045cc100db82f5944b'; function sigCalculate($parametersForSign, $privateKey) { ksort($parametersForSign); return hash('sha256', implode('', $parametersForSign).$privateKey); } echo sigCalculate($parametersForSign, $privateKey); ?>
Output for git.master, git.master_jit, rfc.property-hooks
84fc08d1061a855aab369c593adf7bf424e1aa0d6f3b87c8fb8ef0bc7be15725

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