3v4l.org

run code in 300+ PHP versions simultaneously
<?php header("Content-Type: text/html; charset=utf-8"); $array1 = explode("\n",$_POST['mytxt2']); for($i=0;$i<sizeof($array1);$i++){ $array2[$i] = explode('=', $array1[$i]); } $final_balance =0; echo "address=n_tx=total_received=final_balance<br>"; $url = 'https://blockchain.info/multiaddr?active='; for($i=0;$i<sizeof($array2);$i++){ $url .= $array2[$i][1].'|'; if ((($i % 128 == 0)&($i <> 0)) || $i==sizeof($array2)-1) { $ch = curl_init(); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_URL,$url); $result=curl_exec($ch); $obj = json_decode($result); for($j=0;$j<sizeof($obj->{'addresses'});$j++){ if($obj->{'addresses'}[$j]->{'n_tx'}>0) {echo "<b>";} if($obj->{'addresses'}[$j]->{'final_balance'}>0) {echo "<font color=red>";} $final_balance += $obj->{'addresses'}[$j]->{'final_balance'}/100000000; echo $obj->{'addresses'}[$j]->{'address'}.'='.($obj->{'addresses'}[$j]->{'n_tx'}).'='.(sprintf("%.7f", $obj->{'addresses'}[$j]->{'total_received'}/100000000)).'='.(sprintf("%.7f", $obj->{'addresses'}[$j]->{'final_balance'}/100000000)).'<br>'; if($obj->{'addresses'}[$j]->{'final_balance'}>0) {echo "</font color>";} if($obj->{'addresses'}[$j]->{'n_tx'}>0) {echo "</b>";} } echo '!<br>'; $url = 'https://blockchain.info/multiaddr?active='; } } echo '!ALL: <b>'.(sprintf("%.7f", $final_balance)).'</b> BTC<br>'; echo '<b>by agran / BTC: 1agran1xQ4Nwiqv1qegBDF6kqZdfESMUG</b>'; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 12
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 140
Branch analysis from position: 140
2 jumps found. (Code = 44) Position 1 = 143, Position 2 = 28
Branch analysis from position: 143
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
2 jumps found. (Code = 47) Position 1 = 37, Position 2 = 41
Branch analysis from position: 37
2 jumps found. (Code = 43) Position 1 = 42, Position 2 = 139
Branch analysis from position: 42
1 jumps found. (Code = 42) Position 1 = 133
Branch analysis from position: 133
2 jumps found. (Code = 44) Position 1 = 137, Position 2 = 73
Branch analysis from position: 137
2 jumps found. (Code = 44) Position 1 = 143, Position 2 = 28
Branch analysis from position: 143
Branch analysis from position: 28
Branch analysis from position: 73
2 jumps found. (Code = 43) Position 1 = 78, Position 2 = 79
Branch analysis from position: 78
2 jumps found. (Code = 43) Position 1 = 84, Position 2 = 85
Branch analysis from position: 84
2 jumps found. (Code = 43) Position 1 = 125, Position 2 = 126
Branch analysis from position: 125
2 jumps found. (Code = 43) Position 1 = 131, Position 2 = 132
Branch analysis from position: 131
2 jumps found. (Code = 44) Position 1 = 137, Position 2 = 73
Branch analysis from position: 137
Branch analysis from position: 73
Branch analysis from position: 132
Branch analysis from position: 126
Branch analysis from position: 85
Branch analysis from position: 79
Branch analysis from position: 139
Branch analysis from position: 41
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 12
Branch analysis from position: 23
Branch analysis from position: 12
filename:       /in/uU8tv
function name:  (null)
number of ops:  152
compiled vars:  !0 = $array1, !1 = $i, !2 = $array2, !3 = $final_balance, !4 = $url, !5 = $ch, !6 = $result, !7 = $obj, !8 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'header'
          1        SEND_VAL                                                 'Content-Type%3A+text%2Fhtml%3B+charset%3Dutf-8'
          2        DO_ICALL                                                 
    5     3        INIT_FCALL                                               'explode'
          4        SEND_VAL                                                 '%0A'
          5        FETCH_R                      global              ~10     '_POST'
          6        FETCH_DIM_R                                      ~11     ~10, 'mytxt2'
          7        SEND_VAL                                                 ~11
          8        DO_ICALL                                         $12     
          9        ASSIGN                                                   !0, $12
    6    10        ASSIGN                                                   !1, 0
         11      > JMP                                                      ->20
    7    12    >   INIT_FCALL                                               'explode'
         13        SEND_VAL                                                 '%3D'
         14        FETCH_DIM_R                                      ~16     !0, !1
         15        SEND_VAL                                                 ~16
         16        DO_ICALL                                         $17     
         17        ASSIGN_DIM                                               !2, !1
         18        OP_DATA                                                  $17
    6    19        PRE_INC                                                  !1
         20    >   COUNT                                            ~19     !0
         21        IS_SMALLER                                               !1, ~19
         22      > JMPNZ                                                    ~20, ->12
    9    23    >   ASSIGN                                                   !3, 0
   10    24        ECHO                                                     'address%3Dn_tx%3Dtotal_received%3Dfinal_balance%3Cbr%3E'
   11    25        ASSIGN                                                   !4, 'https%3A%2F%2Fblockchain.info%2Fmultiaddr%3Factive%3D'
   12    26        ASSIGN                                                   !1, 0
         27      > JMP                                                      ->140
   13    28    >   FETCH_DIM_R                                      ~24     !2, !1
         29        FETCH_DIM_R                                      ~25     ~24, 1
         30        CONCAT                                           ~26     ~25, '%7C'
         31        ASSIGN_OP                                     8          !4, ~26
   14    32        MOD                                              ~28     !1, 128
         33        IS_EQUAL                                         ~29     ~28, 0
         34        IS_NOT_EQUAL                                     ~30     !1, 0
         35        BW_AND                                           ~31     ~29, ~30
         36      > JMPNZ_EX                                         ~31     ~31, ->41
         37    >   COUNT                                            ~32     !2
         38        SUB                                              ~33     ~32, 1
         39        IS_EQUAL                                         ~34     !1, ~33
         40        BOOL                                             ~31     ~34
         41    > > JMPZ                                                     ~31, ->139
   16    42    >   INIT_FCALL_BY_NAME                                       'curl_init'
         43        DO_FCALL                                      0  $35     
         44        ASSIGN                                                   !5, $35
   17    45        INIT_FCALL_BY_NAME                                       'curl_setopt'
         46        SEND_VAR_EX                                              !5
         47        FETCH_CONSTANT                                   ~37     'CURLOPT_SSL_VERIFYPEER'
         48        SEND_VAL_EX                                              ~37
         49        SEND_VAL_EX                                              <false>
         50        DO_FCALL                                      0          
   18    51        INIT_FCALL_BY_NAME                                       'curl_setopt'
         52        SEND_VAR_EX                                              !5
         53        FETCH_CONSTANT                                   ~39     'CURLOPT_RETURNTRANSFER'
         54        SEND_VAL_EX                                              ~39
         55        SEND_VAL_EX                                              <true>
         56        DO_FCALL                                      0          
   19    57        INIT_FCALL_BY_NAME                                       'curl_setopt'
         58        SEND_VAR_EX                                              !5
         59        FETCH_CONSTANT                                   ~41     'CURLOPT_URL'
         60        SEND_VAL_EX                                              ~41
         61        SEND_VAR_EX                                              !4
         62        DO_FCALL                                      0          
   20    63        INIT_FCALL_BY_NAME                                       'curl_exec'
         64        SEND_VAR_EX                                              !5
         65        DO_FCALL                                      0  $43     
         66        ASSIGN                                                   !6, $43
   22    67        INIT_FCALL                                               'json_decode'
         68        SEND_VAR                                                 !6
         69        DO_ICALL                                         $45     
         70        ASSIGN                                                   !7, $45
   24    71        ASSIGN                                                   !8, 0
         72      > JMP                                                      ->133
   27    73    >   FETCH_OBJ_R                                      ~48     !7, 'addresses'
         74        FETCH_DIM_R                                      ~49     ~48, !8
         75        FETCH_OBJ_R                                      ~50     ~49, 'n_tx'
         76        IS_SMALLER                                               0, ~50
         77      > JMPZ                                                     ~51, ->79
   28    78    >   ECHO                                                     '%3Cb%3E'
   29    79    >   FETCH_OBJ_R                                      ~52     !7, 'addresses'
         80        FETCH_DIM_R                                      ~53     ~52, !8
         81        FETCH_OBJ_R                                      ~54     ~53, 'final_balance'
         82        IS_SMALLER                                               0, ~54
         83      > JMPZ                                                     ~55, ->85
   30    84    >   ECHO                                                     '%3Cfont+color%3Dred%3E'
   31    85    >   FETCH_OBJ_R                                      ~56     !7, 'addresses'
         86        FETCH_DIM_R                                      ~57     ~56, !8
         87        FETCH_OBJ_R                                      ~58     ~57, 'final_balance'
         88        DIV                                              ~59     ~58, 100000000
         89        ASSIGN_OP                                     1          !3, ~59
   32    90        FETCH_OBJ_R                                      ~61     !7, 'addresses'
         91        FETCH_DIM_R                                      ~62     ~61, !8
         92        FETCH_OBJ_R                                      ~63     ~62, 'address'
         93        CONCAT                                           ~64     ~63, '%3D'
         94        FETCH_OBJ_R                                      ~65     !7, 'addresses'
         95        FETCH_DIM_R                                      ~66     ~65, !8
         96        FETCH_OBJ_R                                      ~67     ~66, 'n_tx'
         97        CONCAT                                           ~68     ~64, ~67
         98        CONCAT                                           ~69     ~68, '%3D'
         99        INIT_FCALL                                               'sprintf'
        100        SEND_VAL                                                 '%25.7f'
        101        FETCH_OBJ_R                                      ~70     !7, 'addresses'
        102        FETCH_DIM_R                                      ~71     ~70, !8
        103        FETCH_OBJ_R                                      ~72     ~71, 'total_received'
        104        DIV                                              ~73     ~72, 100000000
        105        SEND_VAL                                                 ~73
        106        DO_ICALL                                         $74     
        107        CONCAT                                           ~75     ~69, $74
        108        CONCAT                                           ~76     ~75, '%3D'
        109        INIT_FCALL                                               'sprintf'
        110        SEND_VAL                                                 '%25.7f'
        111        FETCH_OBJ_R                                      ~77     !7, 'addresses'
        112        FETCH_DIM_R                                      ~78     ~77, !8
        113        FETCH_OBJ_R                                      ~79     ~78, 'final_balance'
        114        DIV                                              ~80     ~79, 100000000
        115        SEND_VAL                                                 ~80
        116        DO_ICALL                                         $81     
        117        CONCAT                                           ~82     ~76, $81
        118        CONCAT                                           ~83     ~82, '%3Cbr%3E'
        119        ECHO                                                     ~83
   33   120        FETCH_OBJ_R                                      ~84     !7, 'addresses'
        121        FETCH_DIM_R                                      ~85     ~84, !8
        122        FETCH_OBJ_R                                      ~86     ~85, 'final_balance'
        123        IS_SMALLER                                               0, ~86
        124      > JMPZ                                                     ~87, ->126
   34   125    >   ECHO                                                     '%3C%2Ffont+color%3E'
   35   126    >   FETCH_OBJ_R                                      ~88     !7, 'addresses'
        127        FETCH_DIM_R                                      ~89     ~88, !8
        128        FETCH_OBJ_R                                      ~90     ~89, 'n_tx'
        129        IS_SMALLER                                               0, ~90
        130      > JMPZ                                                     ~91, ->132
   36   131    >   ECHO                                                     '%3C%2Fb%3E'
   24   132    >   PRE_INC                                                  !8
        133    >   FETCH_OBJ_R                                      ~93     !7, 'addresses'
        134        COUNT                                            ~94     ~93
        135        IS_SMALLER                                               !8, ~94
        136      > JMPNZ                                                    ~95, ->73
   40   137    >   ECHO                                                     '%21%3Cbr%3E'
   41   138        ASSIGN                                                   !4, 'https%3A%2F%2Fblockchain.info%2Fmultiaddr%3Factive%3D'
   12   139    >   PRE_INC                                                  !1
        140    >   COUNT                                            ~98     !2
        141        IS_SMALLER                                               !1, ~98
        142      > JMPNZ                                                    ~99, ->28
   44   143    >   INIT_FCALL                                               'sprintf'
        144        SEND_VAL                                                 '%25.7f'
        145        SEND_VAR                                                 !3
        146        DO_ICALL                                         $100    
        147        CONCAT                                           ~101    '%21ALL%3A+%3Cb%3E', $100
        148        CONCAT                                           ~102    ~101, '%3C%2Fb%3E+BTC%3Cbr%3E'
        149        ECHO                                                     ~102
   46   150        ECHO                                                     '%3Cb%3Eby+agran+%2F+BTC%3A+1agran1xQ4Nwiqv1qegBDF6kqZdfESMUG%3C%2Fb%3E'
   48   151      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.4 ms | 1408 KiB | 21 Q