3v4l.org

run code in 300+ PHP versions simultaneously
<?php $params = array( 'appid' => 10647, 'apikey' => '5ce0020a-efa7-1180-2339-b6a6-9800fcff', 'secretkey' => QFwpPRp+g7Zdr9p5LwvPlG4WEh7XFJ1WupsO/Uu9GPRXxXqnGoodfERyuOo4, 'timestamp' => 1408522094, ); ksort($params);//对数组键值进行升序排序 $param_uri = http_build_query($params,'','&'); echo $param_uri; echo base64_encode(hash_hmac('sha1', $param_uri, $secretkey));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hR3s5
function name:  (null)
number of ops:  30
compiled vars:  !0 = $params, !1 = $param_uri, !2 = $secretkey
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_ARRAY                                       ~3      10647, 'appid'
    4     1        ADD_ARRAY_ELEMENT                                ~3      '5ce0020a-efa7-1180-2339-b6a6-9800fcff', 'apikey'
    5     2        FETCH_CONSTANT                                   ~4      'QFwpPRp'
          3        FETCH_CONSTANT                                   ~5      'g7Zdr9p5LwvPlG4WEh7XFJ1WupsO'
          4        FETCH_CONSTANT                                   ~6      'Uu9GPRXxXqnGoodfERyuOo4'
          5        DIV                                              ~7      ~5, ~6
          6        ADD                                              ~8      ~4, ~7
          7        ADD_ARRAY_ELEMENT                                ~3      ~8, 'secretkey'
    6     8        ADD_ARRAY_ELEMENT                                ~3      1408522094, 'timestamp'
    2     9        ASSIGN                                                   !0, ~3
    8    10        INIT_FCALL                                               'ksort'
         11        SEND_REF                                                 !0
         12        DO_ICALL                                                 
    9    13        INIT_FCALL                                               'http_build_query'
         14        SEND_VAR                                                 !0
         15        SEND_VAL                                                 ''
         16        SEND_VAL                                                 '%26'
         17        DO_ICALL                                         $11     
         18        ASSIGN                                                   !1, $11
   10    19        ECHO                                                     !1
   11    20        INIT_FCALL                                               'base64_encode'
         21        INIT_FCALL                                               'hash_hmac'
         22        SEND_VAL                                                 'sha1'
         23        SEND_VAR                                                 !1
         24        SEND_VAR                                                 !2
         25        DO_ICALL                                         $13     
         26        SEND_VAR                                                 $13
         27        DO_ICALL                                         $14     
         28        ECHO                                                     $14
         29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.55 ms | 1395 KiB | 21 Q