3v4l.org

run code in 300+ PHP versions simultaneously
<?php $HashPrivado = 'ec7363b7c7ff3ab851335f801568dec5115f09705a45f7d849928e906e0964b0'; $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":153023,"Telefono":"691666156","RxTlf":"7","Email":"jaguilera@likeik.com", "RxEmail":"6", "DeliveryId":812762}'; //$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); echo $ElHash;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/b7944
function name:  (null)
number of ops:  18
compiled vars:  !0 = $HashPrivado, !1 = $BodyCupon, !2 = $Parametros, !3 = $ElHash
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'ec7363b7c7ff3ab851335f801568dec5115f09705a45f7d849928e906e0964b0'
    4     1        ASSIGN                                                   !1, <array>
   15     2        ASSIGN                                                   !2, '%7B%22Tablet%22%3A153023%2C%22Telefono%22%3A%22691666156%22%2C%22RxTlf%22%3A%227%22%2C%22Email%22%3A%22jaguilera%40likeik.com%22%2C+%22RxEmail%22%3A%226%22%2C+%22DeliveryId%22%3A812762%7D'
   17     3        INIT_FCALL                                               'var_dump'
          4        INIT_FCALL                                               'json_decode'
          5        SEND_VAR                                                 !2
          6        SEND_VAL                                                 <true>
          7        DO_ICALL                                         $7      
          8        SEND_VAR                                                 $7
          9        DO_ICALL                                                 
   19    10        INIT_FCALL                                               'hash_hmac'
         11        SEND_VAL                                                 'sha256'
         12        SEND_VAR                                                 !2
         13        SEND_VAR                                                 !0
         14        DO_ICALL                                         $9      
         15        ASSIGN                                                   !3, $9
   20    16        ECHO                                                     !3
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.82 ms | 1395 KiB | 19 Q