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)) ); 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 = 47, Position 2 = 54
Branch analysis from position: 47
2 jumps found. (Code = 78) Position 1 = 48, Position 2 = 54
Branch analysis from position: 48
1 jumps found. (Code = 42) Position 1 = 47
Branch analysis from position: 47
Branch analysis from position: 54
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 54
filename:       /in/TuS2s
function name:  (null)
number of ops:  56
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'
    4    45        ASSIGN                                                   !0, ~3
   13    46      > FE_RESET_R                                       $19     !0, ->54
         47    > > FE_FETCH_R                                       ~20     $19, !1, ->54
         48    >   ASSIGN                                                   !2, ~20
   14    49        CONCAT                                           ~22     !2, '%09%3D%3E%09'
         50        CONCAT                                           ~23     ~22, !1
         51        CONCAT                                           ~24     ~23, '%0A'
         52        ECHO                                                     ~24
   13    53      > JMP                                                      ->47
         54    >   FE_FREE                                                  $19
   15    55      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.92 ms | 1404 KiB | 23 Q