3v4l.org

run code in 300+ PHP versions simultaneously
<?php $targetUri = strtolower(rawurlencode(strtolower($uri))); $expires = time(); $expiresInMins = 60; $week = 60*60*24*7; $expires = $expires + $week; $toSign = $targetUri . "\n" . $expires; $signature = rawurlencode(base64_encode(hash_hmac('sha256', $toSign, $sasKeyValue, TRUE))); $token = "SharedAccessSignature sr=" . $targetUri . "&sig=" . $signature . "&se=" . $expires . "&skn=" . $sasKeyName;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YUX68
function name:  (null)
number of ops:  42
compiled vars:  !0 = $targetUri, !1 = $uri, !2 = $expires, !3 = $expiresInMins, !4 = $week, !5 = $toSign, !6 = $signature, !7 = $sasKeyValue, !8 = $token, !9 = $sasKeyName
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtolower'
          1        INIT_FCALL                                               'rawurlencode'
          2        INIT_FCALL                                               'strtolower'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                         $10     
          5        SEND_VAR                                                 $10
          6        DO_ICALL                                         $11     
          7        SEND_VAR                                                 $11
          8        DO_ICALL                                         $12     
          9        ASSIGN                                                   !0, $12
    4    10        INIT_FCALL                                               'time'
         11        DO_ICALL                                         $14     
         12        ASSIGN                                                   !2, $14
    5    13        ASSIGN                                                   !3, 60
    6    14        ASSIGN                                                   !4, 604800
    7    15        ADD                                              ~18     !2, !4
         16        ASSIGN                                                   !2, ~18
    8    17        CONCAT                                           ~20     !0, '%0A'
         18        CONCAT                                           ~21     ~20, !2
         19        ASSIGN                                                   !5, ~21
    9    20        INIT_FCALL                                               'rawurlencode'
         21        INIT_FCALL                                               'base64_encode'
         22        INIT_FCALL                                               'hash_hmac'
         23        SEND_VAL                                                 'sha256'
   10    24        SEND_VAR                                                 !5
         25        SEND_VAR                                                 !7
         26        SEND_VAL                                                 <true>
         27        DO_ICALL                                         $23     
         28        SEND_VAR                                                 $23
         29        DO_ICALL                                         $24     
         30        SEND_VAR                                                 $24
         31        DO_ICALL                                         $25     
    9    32        ASSIGN                                                   !6, $25
   12    33        CONCAT                                           ~27     'SharedAccessSignature+sr%3D', !0
         34        CONCAT                                           ~28     ~27, '%26sig%3D'
         35        CONCAT                                           ~29     ~28, !6
         36        CONCAT                                           ~30     ~29, '%26se%3D'
         37        CONCAT                                           ~31     ~30, !2
         38        CONCAT                                           ~32     ~31, '%26skn%3D'
         39        CONCAT                                           ~33     ~32, !9
         40        ASSIGN                                                   !8, ~33
         41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.31 ms | 1401 KiB | 23 Q