3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cdrn_domain = "api.cdrn.com"; $secret_key = "57PE7UYt4h"; $api_version = "1.1"; $method_type = "PUT"; $case_id = "43958890"; $string_date = "2017-06-13T13:25:00Z"; $string_to_sign = $method_type . "\n" . $cdrn_domain . "\n" . "/partners/cases/$case_id" . "\n" . "<case xmlns=\"http://api.partner.cdrn.com/domain\"><status>PROCESSING</status></case>" . "\n" . $api_version . "\n" . $string_date . "\n"; $signature = utf8_encode(base64_encode(hash_hmac('sha1', $string_to_sign, $secret_key, false))); echo "$signature";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4MObH
function name:  (null)
number of ops:  36
compiled vars:  !0 = $cdrn_domain, !1 = $secret_key, !2 = $api_version, !3 = $method_type, !4 = $case_id, !5 = $string_date, !6 = $string_to_sign, !7 = $signature
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'api.cdrn.com'
    5     1        ASSIGN                                                   !1, '57PE7UYt4h'
    7     2        ASSIGN                                                   !2, '1.1'
    9     3        ASSIGN                                                   !3, 'PUT'
   11     4        ASSIGN                                                   !4, '43958890'
   13     5        ASSIGN                                                   !5, '2017-06-13T13%3A25%3A00Z'
   15     6        CONCAT                                           ~14     !3, '%0A'
          7        CONCAT                                           ~15     ~14, !0
          8        CONCAT                                           ~16     ~15, '%0A'
          9        NOP                                                      
         10        FAST_CONCAT                                      ~17     '%2Fpartners%2Fcases%2F', !4
         11        CONCAT                                           ~18     ~16, ~17
         12        CONCAT                                           ~19     ~18, '%0A'
   16    13        CONCAT                                           ~20     ~19, '%3Ccase+xmlns%3D%22http%3A%2F%2Fapi.partner.cdrn.com%2Fdomain%22%3E%3Cstatus%3EPROCESSING%3C%2Fstatus%3E%3C%2Fcase%3E'
         14        CONCAT                                           ~21     ~20, '%0A'
         15        CONCAT                                           ~22     ~21, !2
         16        CONCAT                                           ~23     ~22, '%0A'
         17        CONCAT                                           ~24     ~23, !5
         18        CONCAT                                           ~25     ~24, '%0A'
   15    19        ASSIGN                                                   !6, ~25
   18    20        INIT_FCALL                                               'utf8_encode'
         21        INIT_FCALL                                               'base64_encode'
         22        INIT_FCALL                                               'hash_hmac'
         23        SEND_VAL                                                 'sha1'
         24        SEND_VAR                                                 !6
         25        SEND_VAR                                                 !1
         26        SEND_VAL                                                 <false>
         27        DO_ICALL                                         $27     
         28        SEND_VAR                                                 $27
         29        DO_ICALL                                         $28     
         30        SEND_VAR                                                 $28
         31        DO_ICALL                                         $29     
         32        ASSIGN                                                   !7, $29
   20    33        CAST                                          6  ~31     !7
         34        ECHO                                                     ~31
         35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.64 ms | 1396 KiB | 19 Q