3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //Enter your code here, enjoy! $array = array("nonce" => "1512266912", "req" => json_encode(array('Currency'=> "")), "base64" => base64_encode(md5(json_encode(array('Currency'=> "")), true)), "url0" => "https://www.cryptopia.co.nz/Api/GetBalance", "url1" => strtolower(urlencode("https://www.cryptopia.co.nz/Api/GetBalance")), "pk" => "3bRaCjuhOaEHwLmNl4ADm4NZDSHUevZvVM0Njz9RXvIo", "sign" => "13c55a9a358947d481e2788dc294486b" . "POST" . strtolower(urlencode("https://www.cryptopia.co.nz/Api/GetBalance")) . "1512266912" . base64_encode(md5(json_encode(array('Currency'=> "")), true)), "hmac" => base64_encode( hash_hmac("sha256", "13c55a9a358947d481e2788dc294486bPOSThttps%3A%2F%2Fwww.cryptopia.co.nz%2FApi%2FGetBalance1512266912xAU1rEJ+vKG36c3vlR4nTw==", base64_decode("3bRaCjuhOaEHwLmNl4ADm4NZDSHUevZvVM0Njz9RXvIo"), true ) ) ); foreach( $array as $key => $value ){ echo $key."\t=>\t".$value."\n"; }
based on TuS2s
Output for 5.6.0 - 5.6.38, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0
nonce => 1512266912 req => {"Currency":""} base64 => xAU1rEJ+vKG36c3vlR4nTw== url0 => https://www.cryptopia.co.nz/Api/GetBalance url1 => https%3a%2f%2fwww.cryptopia.co.nz%2fapi%2fgetbalance pk => 3bRaCjuhOaEHwLmNl4ADm4NZDSHUevZvVM0Njz9RXvIo sign => 13c55a9a358947d481e2788dc294486bPOSThttps%3a%2f%2fwww.cryptopia.co.nz%2fapi%2fgetbalance1512266912xAU1rEJ+vKG36c3vlR4nTw== hmac => wDTxFs3F0FsjONSW3VSUWgP1hO/Mbqq4BreXhKx1+IY=