3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Enter your code here, enjoy! $array = array("nonce" => "1512266912", "req" => json_encode(array('Currency'=> "")), "base64" => base64_encode(md5(json_encode(array('Currency'=> "")), true)), "url0" => "https://www.cryptopia.co.nz/Api/GetBalance", "url1" => strtolower(urlencode("https://www.cryptopia.co.nz/Api/GetBalance")), "pk" => "3bRaCjuhOaEHwLmNl4ADm4NZDSHUevZvVM0Njz9RXvIo", "sign" => "13c55a9a358947d481e2788dc294486b" . "POST" . strtolower(urlencode("https://www.cryptopia.co.nz/Api/GetBalance")) . "1512266912" . base64_encode(md5(json_encode(array('Currency'=> "")), true)), "hmac" => base64_encode( hash_hmac("sha256", "13c55a9a358947d481e2788dc294486bPOSThttps%3A%2F%2Fwww.cryptopia.co.nz%2FApi%2FGetBalance1512266912xAU1rEJ+vKG36c3vlR4nTw==", base64_decode("3bRaCjuhOaEHwLmNl4ADm4NZDSHUevZvVM0Njz9RXvIo"), true ) ) ); foreach( $array as $key => $value ){ echo $key."\t=>\t".$value."\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 60, Position 2 = 67
Branch analysis from position: 60
2 jumps found. (Code = 78) Position 1 = 61, Position 2 = 67
Branch analysis from position: 61
1 jumps found. (Code = 42) Position 1 = 60
Branch analysis from position: 60
Branch analysis from position: 67
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 67
filename:       /in/8ssca
function name:  (null)
number of ops:  69
compiled vars:  !0 = $array, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_ARRAY                                       ~3      '1512266912', 'nonce'
    5     1        INIT_FCALL                                               'json_encode'
          2        SEND_VAL                                                 <array>
          3        DO_ICALL                                         $4      
          4        ADD_ARRAY_ELEMENT                                ~3      $4, 'req'
    6     5        INIT_FCALL                                               'base64_encode'
          6        INIT_FCALL                                               'md5'
          7        INIT_FCALL                                               'json_encode'
          8        SEND_VAL                                                 <array>
          9        DO_ICALL                                         $5      
         10        SEND_VAR                                                 $5
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $6      
         13        SEND_VAR                                                 $6
         14        DO_ICALL                                         $7      
         15        ADD_ARRAY_ELEMENT                                ~3      $7, 'base64'
    7    16        ADD_ARRAY_ELEMENT                                ~3      'https%3A%2F%2Fwww.cryptopia.co.nz%2FApi%2FGetBalance', 'url0'
    8    17        INIT_FCALL                                               'strtolower'
         18        INIT_FCALL                                               'urlencode'
         19        SEND_VAL                                                 'https%3A%2F%2Fwww.cryptopia.co.nz%2FApi%2FGetBalance'
         20        DO_ICALL                                         $8      
         21        SEND_VAR                                                 $8
         22        DO_ICALL                                         $9      
         23        ADD_ARRAY_ELEMENT                                ~3      $9, 'url1'
    9    24        ADD_ARRAY_ELEMENT                                ~3      '3bRaCjuhOaEHwLmNl4ADm4NZDSHUevZvVM0Njz9RXvIo', 'pk'
   10    25        INIT_FCALL                                               'strtolower'
         26        INIT_FCALL                                               'urlencode'
         27        SEND_VAL                                                 'https%3A%2F%2Fwww.cryptopia.co.nz%2FApi%2FGetBalance'
         28        DO_ICALL                                         $10     
         29        SEND_VAR                                                 $10
         30        DO_ICALL                                         $11     
         31        CONCAT                                           ~12     '13c55a9a358947d481e2788dc294486bPOST', $11
         32        CONCAT                                           ~13     ~12, '1512266912'
         33        INIT_FCALL                                               'base64_encode'
         34        INIT_FCALL                                               'md5'
         35        INIT_FCALL                                               'json_encode'
         36        SEND_VAL                                                 <array>
         37        DO_ICALL                                         $14     
         38        SEND_VAR                                                 $14
         39        SEND_VAL                                                 <true>
         40        DO_ICALL                                         $15     
         41        SEND_VAR                                                 $15
         42        DO_ICALL                                         $16     
         43        CONCAT                                           ~17     ~13, $16
         44        ADD_ARRAY_ELEMENT                                ~3      ~17, 'sign'
   11    45        INIT_FCALL                                               'base64_encode'
         46        INIT_FCALL                                               'hash_hmac'
         47        SEND_VAL                                                 'sha256'
         48        SEND_VAL                                                 '13c55a9a358947d481e2788dc294486bPOSThttps%253A%252F%252Fwww.cryptopia.co.nz%252FApi%252FGetBalance1512266912xAU1rEJ%2BvKG36c3vlR4nTw%3D%3D'
         49        INIT_FCALL                                               'base64_decode'
         50        SEND_VAL                                                 '3bRaCjuhOaEHwLmNl4ADm4NZDSHUevZvVM0Njz9RXvIo'
         51        DO_ICALL                                         $18     
         52        SEND_VAR                                                 $18
         53        SEND_VAL                                                 <true>
         54        DO_ICALL                                         $19     
         55        SEND_VAR                                                 $19
         56        DO_ICALL                                         $20     
         57        ADD_ARRAY_ELEMENT                                ~3      $20, 'hmac'
    4    58        ASSIGN                                                   !0, ~3
   14    59      > FE_RESET_R                                       $22     !0, ->67
         60    > > FE_FETCH_R                                       ~23     $22, !1, ->67
         61    >   ASSIGN                                                   !2, ~23
   15    62        CONCAT                                           ~25     !2, '%09%3D%3E%09'
         63        CONCAT                                           ~26     ~25, !1
         64        CONCAT                                           ~27     ~26, '%0A'
         65        ECHO                                                     ~27
   14    66      > JMP                                                      ->60
         67    >   FE_FREE                                                  $22
   16    68      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.47 ms | 1416 KiB | 27 Q