3v4l.org

run code in 300+ PHP versions simultaneously
<?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"; }
Output for 5.6.38, 7.0.33, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.20, 8.3.0 - 8.3.8
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=

preferences:
152.29 ms | 405 KiB | 188 Q