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_url; 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/pT44F
function name:  (null)
number of ops:  21
compiled vars:  !0 = $params, !1 = $param_uri, !2 = $param_url, !3 = $secretkey
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        INIT_FCALL                                               'ksort'
          2        SEND_REF                                                 !0
          3        DO_ICALL                                                 
    9     4        INIT_FCALL                                               'http_build_query'
          5        SEND_VAR                                                 !0
          6        SEND_VAL                                                 ''
          7        SEND_VAL                                                 '%26'
          8        DO_ICALL                                         $6      
          9        ASSIGN                                                   !1, $6
   10    10        ECHO                                                     !2
   11    11        INIT_FCALL                                               'base64_encode'
         12        INIT_FCALL                                               'hash_hmac'
         13        SEND_VAL                                                 'sha1'
         14        SEND_VAR                                                 !1
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                         $8      
         17        SEND_VAR                                                 $8
         18        DO_ICALL                                         $9      
         19        ECHO                                                     $9
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.26 ms | 1395 KiB | 21 Q