3v4l.org

run code in 300+ PHP versions simultaneously
<?php $method = 'POST'; $host = 'ic-preprod-za.emeabridge.eu'; $pathInfo = '/api/v2/companies/234441/oauth/quickbooks/button.html'; $content = ''; $time = time(); $replayProtection = true; //$secret = 'ThisTokenIsNotSoSecretChangeItNow'; $secret = 'InExtenSoXeonyS2014OnAir'; $payload = [ $method, $host, $pathInfo, $content, ]; if ($replayProtection === true) { array_unshift($payload, $time); } echo "Time: $time\n"; var_dump($payload); echo hash_hmac('SHA1', implode("\n", $payload), $secret);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 20
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
filename:       /in/el2l6
function name:  (null)
number of ops:  38
compiled vars:  !0 = $method, !1 = $host, !2 = $pathInfo, !3 = $content, !4 = $time, !5 = $replayProtection, !6 = $secret, !7 = $payload
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'POST'
    3     1        ASSIGN                                                   !1, 'ic-preprod-za.emeabridge.eu'
    4     2        ASSIGN                                                   !2, '%2Fapi%2Fv2%2Fcompanies%2F234441%2Foauth%2Fquickbooks%2Fbutton.html'
    5     3        ASSIGN                                                   !3, ''
    6     4        INIT_FCALL                                               'time'
          5        DO_ICALL                                         $12     
          6        ASSIGN                                                   !4, $12
    7     7        ASSIGN                                                   !5, <true>
    9     8        ASSIGN                                                   !6, 'InExtenSoXeonyS2014OnAir'
   12     9        INIT_ARRAY                                       ~16     !0
   13    10        ADD_ARRAY_ELEMENT                                ~16     !1
   14    11        ADD_ARRAY_ELEMENT                                ~16     !2
   15    12        ADD_ARRAY_ELEMENT                                ~16     !3
   11    13        ASSIGN                                                   !7, ~16
   18    14        TYPE_CHECK                                    8          !5
         15      > JMPZ                                                     ~18, ->20
   19    16    >   INIT_FCALL                                               'array_unshift'
         17        SEND_REF                                                 !7
         18        SEND_VAR                                                 !4
         19        DO_ICALL                                                 
   22    20    >   ROPE_INIT                                     3  ~21     'Time%3A+'
         21        ROPE_ADD                                      1  ~21     ~21, !4
         22        ROPE_END                                      2  ~20     ~21, '%0A'
         23        ECHO                                                     ~20
   23    24        INIT_FCALL                                               'var_dump'
         25        SEND_VAR                                                 !7
         26        DO_ICALL                                                 
   24    27        INIT_FCALL                                               'hash_hmac'
         28        SEND_VAL                                                 'SHA1'
         29        INIT_FCALL                                               'implode'
         30        SEND_VAL                                                 '%0A'
         31        SEND_VAR                                                 !7
         32        DO_ICALL                                         $24     
         33        SEND_VAR                                                 $24
         34        SEND_VAR                                                 !6
         35        DO_ICALL                                         $25     
         36        ECHO                                                     $25
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.68 ms | 1431 KiB | 18 Q