3v4l.org

run code in 300+ PHP versions simultaneously
<?php $access_key = 'de235a6a15c340b6b1e1cb5f3687d04a'; $secret_key = '23e2c7da7f7048e5b46f96bc91324800'; $method = 'POST'; $path = '/activity.json/search?lang=EN&currency=ISK'; $date = '2013-11-09 14:33:46'; $signature_base = $date . $access_key . $method . $path; $signature = hash_hmac('sha1', $signature_base, $secret_key, true); $signature_sha1 = sha1($signature_base); // This is for test purposes $signature_base64 = base64_encode($signature); //echo $signature_base; // 2022-08-31 12:00:00my_access_keyPOST/activity.json/search?currency=EUR&lang=FI //echo $signature_sha1; // 3e81b830958602b54419c61070582519460c36c6 echo $signature_base64; // 5q22t52R0qHk43ssRHs6kyLBSiw=
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/e07bO
function name:  (null)
number of ops:  26
compiled vars:  !0 = $access_key, !1 = $secret_key, !2 = $method, !3 = $path, !4 = $date, !5 = $signature_base, !6 = $signature, !7 = $signature_sha1, !8 = $signature_base64
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'de235a6a15c340b6b1e1cb5f3687d04a'
    4     1        ASSIGN                                                   !1, '23e2c7da7f7048e5b46f96bc91324800'
    5     2        ASSIGN                                                   !2, 'POST'
    6     3        ASSIGN                                                   !3, '%2Factivity.json%2Fsearch%3Flang%3DEN%26currency%3DISK'
    7     4        ASSIGN                                                   !4, '2013-11-09+14%3A33%3A46'
    9     5        CONCAT                                           ~14     !4, !0
          6        CONCAT                                           ~15     ~14, !2
          7        CONCAT                                           ~16     ~15, !3
          8        ASSIGN                                                   !5, ~16
   10     9        INIT_FCALL                                               'hash_hmac'
         10        SEND_VAL                                                 'sha1'
         11        SEND_VAR                                                 !5
         12        SEND_VAR                                                 !1
         13        SEND_VAL                                                 <true>
         14        DO_ICALL                                         $18     
         15        ASSIGN                                                   !6, $18
   11    16        INIT_FCALL                                               'sha1'
         17        SEND_VAR                                                 !5
         18        DO_ICALL                                         $20     
         19        ASSIGN                                                   !7, $20
   12    20        INIT_FCALL                                               'base64_encode'
         21        SEND_VAR                                                 !6
         22        DO_ICALL                                         $22     
         23        ASSIGN                                                   !8, $22
   16    24        ECHO                                                     !8
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149 ms | 1007 KiB | 16 Q