3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '511.483USD677144616IT Books. Qty: 217Books Online Inc.14www.sample.com1512345678901234589999999919pgw@mail.sample.com11--142003010515302116F2B2DD7E603A7ADA33https://www.sample.com/shop/reply'; $key = pack('H*', '00112233445566778899AABBCCDDEEFF'); $expected = 'FACC882CA67E109E409E3974DDEDA8AAB13A5E48'; $result = hash_hmac('sha1', $string, $key); $result = strtoupper($result); echo "Expected: $expected".PHP_EOL; echo "Actual result: $result".PHP_EOL;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/gcvrl
function name:  (null)
number of ops:  26
compiled vars:  !0 = $string, !1 = $key, !2 = $expected, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '511.483USD677144616IT+Books.+Qty%3A+217Books+Online+Inc.14www.sample.com1512345678901234589999999919pgw%40mail.sample.com11--142003010515302116F2B2DD7E603A7ADA33https%3A%2F%2Fwww.sample.com%2Fshop%2Freply'
    4     1        INIT_FCALL                                               'pack'
          2        SEND_VAL                                                 'H%2A'
          3        SEND_VAL                                                 '00112233445566778899AABBCCDDEEFF'
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    6     6        ASSIGN                                                   !2, 'FACC882CA67E109E409E3974DDEDA8AAB13A5E48'
    7     7        INIT_FCALL                                               'hash_hmac'
          8        SEND_VAL                                                 'sha1'
          9        SEND_VAR                                                 !0
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $8      
         12        ASSIGN                                                   !3, $8
    8    13        INIT_FCALL                                               'strtoupper'
         14        SEND_VAR                                                 !3
         15        DO_ICALL                                         $10     
         16        ASSIGN                                                   !3, $10
   10    17        NOP                                                      
         18        FAST_CONCAT                                      ~12     'Expected%3A+++++++++', !2
         19        CONCAT                                           ~13     ~12, '%0A'
         20        ECHO                                                     ~13
   11    21        NOP                                                      
         22        FAST_CONCAT                                      ~14     'Actual+result%3A++++++++', !3
         23        CONCAT                                           ~15     ~14, '%0A'
         24        ECHO                                                     ~15
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.91 ms | 1395 KiB | 19 Q