3v4l.org

run code in 500+ PHP versions simultaneously
<?php $access_key = 'AKIAIOSFODNN7EXAMPLE'; $secret_key = 'wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY'; $string_to_sign = "GET\n\n\nTue, 27 Mar 2007 19:36:42 +0000\n/awsexamplebucket1/photos/puppy.jpg"; echo $access_key . ':' . base64_encode( hash_hmac('sha1', $string_to_sign, $secret_key, true) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1Hp7W
function name:  (null)
number of ops:  16
compiled vars:  !0 = $access_key, !1 = $secret_key, !2 = $string_to_sign
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'AKIAIOSFODNN7EXAMPLE'
    4     1        ASSIGN                                                       !1, 'wJalrXUtnFEMI%2FK7MDENG%2FbPxRfiCYEXAMPLEKEY'
    6     2        ASSIGN                                                       !2, 'GET%0A%0A%0ATue%2C+27+Mar+2007+19%3A36%3A42+%2B0000%0A%2Fawsexamplebucket1%2Fphotos%2Fpuppy.jpg'
    8     3        CONCAT                                               ~6      !0, '%3A'
          4        INIT_FCALL                                                   'base64_encode'
          5        INIT_FCALL                                                   'hash_hmac'
          6        SEND_VAL                                                     'sha1'
          7        SEND_VAR                                                     !2
          8        SEND_VAR                                                     !1
          9        SEND_VAL                                                     <true>
         10        DO_ICALL                                             $7      
         11        SEND_VAR                                                     $7
         12        DO_ICALL                                             $8      
         13        CONCAT                                               ~9      ~6, $8
         14        ECHO                                                         ~9
         15      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
193.51 ms | 1774 KiB | 15 Q