3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keyParts = array( rawurlencode('client_secret'), rawurlencode('nnch734d00sl2jdk'), ); $signature = hash_hmac('sha1', 'GET&http%3A%2F%2Fphotos.example.net%2Fphotos&file%3Dvacation.jpg%26oauth_consumer_key%3Ddpf43f3p2l4k3l03%26oauth_nonce%3Dkllo9940pd9333jh%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1191242096%26oauth_token%3Dnnch734d00sl2jdk%26oauth_version%3D1.0%26size%3Doriginal', implode('&', $keyParts)); var_dump($signature);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Q09n3
function name:  (null)
number of ops:  23
compiled vars:  !0 = $keyParts, !1 = $signature
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'rawurlencode'
          1        SEND_VAL                                                 'client_secret'
          2        DO_ICALL                                         $2      
          3        INIT_ARRAY                                       ~3      $2
    5     4        INIT_FCALL                                               'rawurlencode'
          5        SEND_VAL                                                 'nnch734d00sl2jdk'
          6        DO_ICALL                                         $4      
          7        ADD_ARRAY_ELEMENT                                ~3      $4
    3     8        ASSIGN                                                   !0, ~3
    8     9        INIT_FCALL                                               'hash_hmac'
         10        SEND_VAL                                                 'sha1'
         11        SEND_VAL                                                 'GET%26http%253A%252F%252Fphotos.example.net%252Fphotos%26file%253Dvacation.jpg%2526oauth_consumer_key%253Ddpf43f3p2l4k3l03%2526oauth_nonce%253Dkllo9940pd9333jh%2526oauth_signature_method%253DHMAC-SHA1%2526oauth_timestamp%253D1191242096%2526oauth_token%253Dnnch734d00sl2jdk%2526oauth_version%253D1.0%2526size%253Doriginal'
         12        INIT_FCALL                                               'implode'
         13        SEND_VAL                                                 '%26'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $6      
         16        SEND_VAR                                                 $6
         17        DO_ICALL                                         $7      
         18        ASSIGN                                                   !1, $7
   11    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !1
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.54 ms | 1387 KiB | 21 Q