3v4l.org

run code in 500+ PHP versions simultaneously
<?php $data ='{"provider_details":{"provider_id":"6ab50922d9c4db016473","paid_sum":null,"paid_currency":null},"project_id":"d1ef9673-897d-4cdc-8ea9-24f39d276155","order_id":"5326162649","transaction_id":"3c4be131-a7e9-45d8-a415-64a1bef77c47","operation":{"id":"edc500ff-8027-48a4-99fd-8f88777cfa82","amount":5000000,"currency":"UZS","type":"Payout","status":"Success"},"external_data":{"masked_pan":"986010******8485"},"request_uuid":"464e89e4-459b-4e56-b9e4-2e65f0784638"}'; $data = "{\"provider_details\":{\"provider_id\":\"6a7f59442fb389f63686\",\"provider_amount\":5001000,\"provider_currency\":\"UZS\",\"paid_sum\":5001000,\"paid_currency\":\"UZS\"},\"project_id\":\"d1ef9673-897d-4cdc-8ea9-24f39d276155\",\"order_id\":\"5165445155\",\"transaction_id\":\"2ead9bbe-49b6-43f2-bbc7-293e9c53fc0d\",\"operation\":{\"id\":\"4f8877a2-1f6c-4ed2-89ee-157c70615697\",\"amount\":5001000,\"currency\":\"UZS\",\"type\":\"Payout\",\"status\":\"Success\"},\"external_data\":{\"masked_pan\":\"986010******8485\"},\"request_uuid\":\"2e443ca2-60ec-422a-9d2a-42148fd1f573\"}"; $data = json_decode($data, true); $data = json_encode($data, JSON_UNESCAPED_SLASHES); $test = hash_hmac('sha256', $data, 'xQiXo74gOBP20wxp1H1mTGXUtF4VHLNBN7DcP7a9GvNT0n1lQEkGJ3A4O4SJlnyR'); print_r("calculated: 7244612f902919adf25b559bc3623ccf69fb47f913ee4bfc1fb0468ad35bf74b\n"); print_r("result: " . $test);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ItQ4K
function name:  (null)
number of ops:  26
compiled vars:  !0 = $data, !1 = $test
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%7B%22provider_details%22%3A%7B%22provider_id%22%3A%226ab50922d9c4db016473%22%2C%22paid_sum%22%3Anull%2C%22paid_currency%22%3Anull%7D%2C%22project_id%22%3A%22d1ef9673-897d-4cdc-8ea9-24f39d276155%22%2C%22order_id%22%3A%225326162649%22%2C%22transaction_id%22%3A%223c4be131-a7e9-45d8-a415-64a1bef77c47%22%2C%22operation%22%3A%7B%22id%22%3A%22edc500ff-8027-48a4-99fd-8f88777cfa82%22%2C%22amount%22%3A5000000%2C%22currency%22%3A%22UZS%22%2C%22type%22%3A%22Payout%22%2C%22status%22%3A%22Success%22%7D%2C%22external_data%22%3A%7B%22masked_pan%22%3A%22986010%2A%2A%2A%2A%2A%2A8485%22%7D%2C%22request_uuid%22%3A%22464e89e4-459b-4e56-b9e4-2e65f0784638%22%7D'
    5     1        ASSIGN                                                       !0, '%7B%22provider_details%22%3A%7B%22provider_id%22%3A%226a7f59442fb389f63686%22%2C%22provider_amount%22%3A5001000%2C%22provider_currency%22%3A%22UZS%22%2C%22paid_sum%22%3A5001000%2C%22paid_currency%22%3A%22UZS%22%7D%2C%22project_id%22%3A%22d1ef9673-897d-4cdc-8ea9-24f39d276155%22%2C%22order_id%22%3A%225165445155%22%2C%22transaction_id%22%3A%222ead9bbe-49b6-43f2-bbc7-293e9c53fc0d%22%2C%22operation%22%3A%7B%22id%22%3A%224f8877a2-1f6c-4ed2-89ee-157c70615697%22%2C%22amount%22%3A5001000%2C%22currency%22%3A%22UZS%22%2C%22type%22%3A%22Payout%22%2C%22status%22%3A%22Success%22%7D%2C%22external_data%22%3A%7B%22masked_pan%22%3A%22986010%2A%2A%2A%2A%2A%2A8485%22%7D%2C%22request_uuid%22%3A%222e443ca2-60ec-422a-9d2a-42148fd1f573%22%7D'
    8     2        INIT_FCALL                                                   'json_decode'
          3        SEND_VAR                                                     !0
          4        SEND_VAL                                                     <true>
          5        DO_ICALL                                             $4      
          6        ASSIGN                                                       !0, $4
    9     7        INIT_FCALL                                                   'json_encode'
          8        SEND_VAR                                                     !0
          9        SEND_VAL                                                     64
         10        DO_ICALL                                             $6      
         11        ASSIGN                                                       !0, $6
   10    12        INIT_FCALL                                                   'hash_hmac'
         13        SEND_VAL                                                     'sha256'
         14        SEND_VAR                                                     !0
         15        SEND_VAL                                                     'xQiXo74gOBP20wxp1H1mTGXUtF4VHLNBN7DcP7a9GvNT0n1lQEkGJ3A4O4SJlnyR'
         16        DO_ICALL                                             $8      
         17        ASSIGN                                                       !1, $8
   13    18        INIT_FCALL                                                   'print_r'
         19        SEND_VAL                                                     'calculated%3A++++7244612f902919adf25b559bc3623ccf69fb47f913ee4bfc1fb0468ad35bf74b%0A'
         20        DO_ICALL                                                     
   14    21        INIT_FCALL                                                   'print_r'
         22        CONCAT                                               ~11     'result%3A++++++++', !1
         23        SEND_VAL                                                     ~11
         24        DO_ICALL                                                     
         25      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
127.1 ms | 486 KiB | 11 Q