3v4l.org

run code in 300+ PHP versions simultaneously
<?php $username = "robstark@winterfell.com"; $secretKey = sha1("L1v3rp00@"); $verb = ‘POST’; $body = json_encode("{\"Request\":{\"satn\":\"213456\"},\"emailAddress\":\"robstark@winterfell.com\"}"); $contentmd5 = base64_encode(md5($body, true)); $contentType = "application/json"; $dateNow = gmdate("c"); $authCode = base64_encode(hmac-sha1($secretKey, $verb . ‘\n’ . $contentmd5 . ‘\n’ . $contentType . ‘\n’ . $dateNow));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mN1iD
function name:  (null)
number of ops:  44
compiled vars:  !0 = $username, !1 = $secretKey, !2 = $verb, !3 = $body, !4 = $contentmd5, !5 = $contentType, !6 = $dateNow, !7 = $authCode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'robstark%40winterfell.com'
    3     1        INIT_FCALL                                               'sha1'
          2        SEND_VAL                                                 'L1v3rp00%40'
          3        DO_ICALL                                         $9      
          4        ASSIGN                                                   !1, $9
    4     5        FETCH_CONSTANT                                   ~11     '%E2%80%98POST%E2%80%99'
          6        ASSIGN                                                   !2, ~11
    5     7        INIT_FCALL                                               'json_encode'
          8        SEND_VAL                                                 '%7B%22Request%22%3A%7B%22satn%22%3A%22213456%22%7D%2C%22emailAddress%22%3A%22robstark%40winterfell.com%22%7D'
          9        DO_ICALL                                         $13     
         10        ASSIGN                                                   !3, $13
    6    11        INIT_FCALL                                               'base64_encode'
         12        INIT_FCALL                                               'md5'
         13        SEND_VAR                                                 !3
         14        SEND_VAL                                                 <true>
         15        DO_ICALL                                         $15     
         16        SEND_VAR                                                 $15
         17        DO_ICALL                                         $16     
         18        ASSIGN                                                   !4, $16
    7    19        ASSIGN                                                   !5, 'application%2Fjson'
    8    20        INIT_FCALL                                               'gmdate'
         21        SEND_VAL                                                 'c'
         22        DO_ICALL                                         $19     
         23        ASSIGN                                                   !6, $19
    9    24        INIT_FCALL                                               'base64_encode'
         25        FETCH_CONSTANT                                   ~21     'hmac'
         26        INIT_FCALL                                               'sha1'
         27        SEND_VAR                                                 !1
         28        FETCH_CONSTANT                                   ~22     '%E2%80%98%5Cn%E2%80%99'
         29        CONCAT                                           ~23     !2, ~22
         30        CONCAT                                           ~24     ~23, !4
         31        FETCH_CONSTANT                                   ~25     '%E2%80%98%5Cn%E2%80%99'
         32        CONCAT                                           ~26     ~24, ~25
         33        CONCAT                                           ~27     ~26, !5
         34        FETCH_CONSTANT                                   ~28     '%E2%80%98%5Cn%E2%80%99'
         35        CONCAT                                           ~29     ~27, ~28
         36        CONCAT                                           ~30     ~29, !6
         37        SEND_VAL                                                 ~30
         38        DO_ICALL                                         $31     
         39        SUB                                              ~32     ~21, $31
         40        SEND_VAL                                                 ~32
         41        DO_ICALL                                         $33     
         42        ASSIGN                                                   !7, $33
         43      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
196.12 ms | 1400 KiB | 23 Q