3v4l.org

run code in 300+ PHP versions simultaneously
<?php $HashPrivado = 'ec7363b7c7ff3ab851335f801568dec5115f09705a45f7d849928e906e0964b0'; $HashPBD = '746e085ea210dd7c14f3cad3f6113767aa58439bebee6459989141c0f0474bff'; $BodyCupon = array( "Tipo" => "code128", "Codigo" => "1234567", "Tam" => 300, "Color" => "black", "ColorB" => "white", "AltoB"=> 50, "AnchoB"=> 2 ); //Preparo la llamada //$Parametros = json_encode($BodyCupon); $Parametros = '{"Tablet":153042,"Telefono":"650849571","RxTlf":"22","Email":"jaimecano7@gmail.com", "RxEmail":"23", "DeliveryId":1222}'; //$Parametros = '{"a":1,"b":2,"c":3,"d":4,"e":5}'; var_dump(json_decode($Parametros, TRUE)); //Usando el hash privado, firmamos el contenido a transmitir (los parĂ¡metros) $ElHash = hash_hmac('sha256', $Parametros, $HashPrivado); $ElHashBD = hash_hmac('sha256', $Parametros, $HashPBD); echo 'HashLK-'.$ElHash.PHP_EOL; echo 'HashBD-'.$ElHashBD.PHP_EOL; $HashMD5 = hash('md5', $Parametros, FALSE); echo 'ElMD5:'.$HashMD5;
Output for git.master, git.master_jit, rfc.property-hooks
array(6) { ["Tablet"]=> int(153042) ["Telefono"]=> string(9) "650849571" ["RxTlf"]=> string(2) "22" ["Email"]=> string(20) "jaimecano7@gmail.com" ["RxEmail"]=> string(2) "23" ["DeliveryId"]=> int(1222) } HashLK-ae7b3befdfd69a99291dcf0b5c2955a54340ec1c3a745440c6f34b32af4b77bf HashBD-f5c3286bda6ff4be9d9a83a028eb5ee43e1c36b3896320e824de604366ffbbd7 ElMD5:c3bca03244dd8760f6f68a23d4309d3b

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