3v4l.org

run code in 300+ PHP versions simultaneously
<?php $apiKey = '17KSYUP0-3MW9A6N9-77W6J496-LS6FA0P2'; $apiSecret = '8a46e2dd9f0cf222b7c468a963629962c44ecaee0b4c125638cf96fd2fde86196a7aa1bb4b7f8d5c3e604a993f3ab8649e3478cdc1f7074cf04a0dcca11add6a'; $address = '1PymQyhUH2RJCNQLKzDBPVcehk2crVJrBd'; $withdrawAmount = '0.29'; $withdrawFee = '0.001'; include 'poloniex.class.php'; // Ask for input (how many times we shall loop) echo "Each withdraw is 1000 BTC, how many times do you want to withdraw 1000 BTC? E.g enter 2 to withdraw 2000 BTC: \n"; $handle = fopen ("php://stdin","r"); $line = fgets($handle); $loop = trim($line); if(! is_numeric($loop) OR $loop < 1 OR $loop > 1000){ echo "ABORTING, INVALID NUMBER, PLEASE SPECIFY NUMBER 1-1000!\n"; exit; } fclose($handle); echo "\n"; echo "Thank you, continuing...\n"; // Ask for confirmation echo "You have selected to withdraw: \n".$withdrawAmount." BTC * ".$loop." = ".($withdrawAmount * $loop)." BTC (Total Fee: ".($withdrawFee * $loop)." BTC).\n To address: \n".$address." \n Are you sure you want to do this? Type 'yes' to continue: "; $handle = fopen ("php://stdin","r"); $line = fgets($handle); if(trim($line) != 'yes'){ echo "ABORTING!\n"; exit; } fclose($handle); echo "\n"; echo "Thank you, continuing...\n"; $polo = new poloniex($apiKey,$apiSecret); for($i = 0;$i<$loop;$i++) { $res = $polo->withdraw('BTC',($withdrawAmount + $withdrawFee),$address); echo '<pre>'; var_dump($res); echo '</pre>'; sleep(1); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 25, Position 2 = 27
Branch analysis from position: 25
2 jumps found. (Code = 47) Position 1 = 28, Position 2 = 30
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 33
Branch analysis from position: 31
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 33
2 jumps found. (Code = 43) Position 1 = 65, Position 2 = 67
Branch analysis from position: 65
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 67
1 jumps found. (Code = 42) Position 1 = 95
Branch analysis from position: 95
2 jumps found. (Code = 44) Position 1 = 97, Position 2 = 79
Branch analysis from position: 97
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 79
2 jumps found. (Code = 44) Position 1 = 97, Position 2 = 79
Branch analysis from position: 97
Branch analysis from position: 79
Branch analysis from position: 30
Branch analysis from position: 27
filename:       /in/io490
function name:  (null)
number of ops:  98
compiled vars:  !0 = $apiKey, !1 = $apiSecret, !2 = $address, !3 = $withdrawAmount, !4 = $withdrawFee, !5 = $handle, !6 = $line, !7 = $loop, !8 = $polo, !9 = $i, !10 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '17KSYUP0-3MW9A6N9-77W6J496-LS6FA0P2'
    3     1        ASSIGN                                                   !1, '8a46e2dd9f0cf222b7c468a963629962c44ecaee0b4c125638cf96fd2fde86196a7aa1bb4b7f8d5c3e604a993f3ab8649e3478cdc1f7074cf04a0dcca11add6a'
    4     2        ASSIGN                                                   !2, '1PymQyhUH2RJCNQLKzDBPVcehk2crVJrBd'
    5     3        ASSIGN                                                   !3, '0.29'
    6     4        ASSIGN                                                   !4, '0.001'
    8     5        INCLUDE_OR_EVAL                                          'poloniex.class.php', INCLUDE
   11     6        ECHO                                                     'Each+withdraw+is+1000+BTC%2C+how+many+times+do+you+want+to+withdraw+1000+BTC%3F+E.g+enter+2+to+withdraw+2000+BTC%3A+%0A'
   12     7        INIT_FCALL                                               'fopen'
          8        SEND_VAL                                                 'php%3A%2F%2Fstdin'
          9        SEND_VAL                                                 'r'
         10        DO_ICALL                                         $17     
         11        ASSIGN                                                   !5, $17
   13    12        INIT_FCALL                                               'fgets'
         13        SEND_VAR                                                 !5
         14        DO_ICALL                                         $19     
         15        ASSIGN                                                   !6, $19
   14    16        INIT_FCALL                                               'trim'
         17        SEND_VAR                                                 !6
         18        DO_ICALL                                         $21     
         19        ASSIGN                                                   !7, $21
   15    20        INIT_FCALL                                               'is_numeric'
         21        SEND_VAR                                                 !7
         22        DO_ICALL                                         $23     
         23        BOOL_NOT                                         ~24     $23
         24      > JMPNZ_EX                                         ~24     ~24, ->27
         25    >   IS_SMALLER                                       ~25     !7, 1
         26        BOOL                                             ~24     ~25
         27    > > JMPNZ_EX                                         ~24     ~24, ->30
         28    >   IS_SMALLER                                       ~26     1000, !7
         29        BOOL                                             ~24     ~26
         30    > > JMPZ                                                     ~24, ->33
   16    31    >   ECHO                                                     'ABORTING%2C+INVALID+NUMBER%2C+PLEASE+SPECIFY+NUMBER+1-1000%21%0A'
   17    32      > EXIT                                                     
   19    33    >   INIT_FCALL                                               'fclose'
         34        SEND_VAR                                                 !5
         35        DO_ICALL                                                 
   20    36        ECHO                                                     '%0A'
   21    37        ECHO                                                     'Thank+you%2C+continuing...%0A'
   24    38        CONCAT                                           ~28     'You+have+selected+to+withdraw%3A+%0A', !3
         39        CONCAT                                           ~29     ~28, '+BTC+%2A+'
         40        CONCAT                                           ~30     ~29, !7
         41        CONCAT                                           ~31     ~30, '+%3D+'
         42        MUL                                              ~32     !3, !7
         43        CONCAT                                           ~33     ~31, ~32
         44        CONCAT                                           ~34     ~33, '+BTC+%28Total+Fee%3A+'
         45        MUL                                              ~35     !4, !7
         46        CONCAT                                           ~36     ~34, ~35
         47        CONCAT                                           ~37     ~36, '+BTC%29.%0A%0ATo+address%3A+%0A'
   25    48        CONCAT                                           ~38     ~37, !2
         49        CONCAT                                           ~39     ~38, '+%0A%0AAre+you+sure+you+want+to+do+this%3F+Type+%27yes%27+to+continue%3A+'
         50        ECHO                                                     ~39
   27    51        INIT_FCALL                                               'fopen'
         52        SEND_VAL                                                 'php%3A%2F%2Fstdin'
         53        SEND_VAL                                                 'r'
         54        DO_ICALL                                         $40     
         55        ASSIGN                                                   !5, $40
   28    56        INIT_FCALL                                               'fgets'
         57        SEND_VAR                                                 !5
         58        DO_ICALL                                         $42     
         59        ASSIGN                                                   !6, $42
   29    60        INIT_FCALL                                               'trim'
         61        SEND_VAR                                                 !6
         62        DO_ICALL                                         $44     
         63        IS_NOT_EQUAL                                             $44, 'yes'
         64      > JMPZ                                                     ~45, ->67
   30    65    >   ECHO                                                     'ABORTING%21%0A'
   31    66      > EXIT                                                     
   33    67    >   INIT_FCALL                                               'fclose'
         68        SEND_VAR                                                 !5
         69        DO_ICALL                                                 
   34    70        ECHO                                                     '%0A'
   35    71        ECHO                                                     'Thank+you%2C+continuing...%0A'
   37    72        NEW                                              $47     'poloniex'
         73        SEND_VAR_EX                                              !0
         74        SEND_VAR_EX                                              !1
         75        DO_FCALL                                      0          
         76        ASSIGN                                                   !8, $47
   39    77        ASSIGN                                                   !9, 0
         78      > JMP                                                      ->95
   42    79    >   INIT_METHOD_CALL                                         !8, 'withdraw'
         80        SEND_VAL_EX                                              'BTC'
         81        ADD                                              ~51     !3, !4
         82        SEND_VAL_EX                                              ~51
         83        SEND_VAR_EX                                              !2
         84        DO_FCALL                                      0  $52     
         85        ASSIGN                                                   !10, $52
   44    86        ECHO                                                     '%3Cpre%3E'
   45    87        INIT_FCALL                                               'var_dump'
         88        SEND_VAR                                                 !10
         89        DO_ICALL                                                 
   46    90        ECHO                                                     '%3C%2Fpre%3E'
   47    91        INIT_FCALL                                               'sleep'
         92        SEND_VAL                                                 1
         93        DO_ICALL                                                 
   39    94        PRE_INC                                                  !9
         95    >   IS_SMALLER                                               !9, !7
         96      > JMPNZ                                                    ~57, ->79
   48    97    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
351.91 ms | 980 KiB | 20 Q