3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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); }
Output for 7.1.20 - 7.2.6
Warning: include(): open_basedir restriction in effect. File(poloniex.class.php) is not within the allowed path(s): (/tmp:/in) in /in/io490 on line 8 Warning: include(poloniex.class.php): failed to open stream: Operation not permitted in /in/io490 on line 8 Warning: include(): Failed opening 'poloniex.class.php' for inclusion (include_path='.:') in /in/io490 on line 8 Each withdraw is 1000 BTC, how many times do you want to withdraw 1000 BTC? E.g enter 2 to withdraw 2000 BTC: ABORTING, INVALID NUMBER, PLEASE SPECIFY NUMBER 1-1000!
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.11
Warning: include(poloniex.class.php): failed to open stream: No such file or directory in /in/io490 on line 8 Warning: include(): Failed opening 'poloniex.class.php' for inclusion (include_path='.:') in /in/io490 on line 8 Each withdraw is 1000 BTC, how many times do you want to withdraw 1000 BTC? E.g enter 2 to withdraw 2000 BTC: ABORTING, INVALID NUMBER, PLEASE SPECIFY NUMBER 1-1000!
Output for hhvm-3.22.0
Warning: include(poloniex.class.php): File not found in /in/io490 on line -1 Each withdraw is 1000 BTC, how many times do you want to withdraw 1000 BTC? E.g enter 2 to withdraw 2000 BTC: ABORTING, INVALID NUMBER, PLEASE SPECIFY NUMBER 1-1000!
Output for hhvm-3.18.5 - 3.21.3
Warning: include(poloniex.class.php): File not found in /in/io490 on line 8 Each withdraw is 1000 BTC, how many times do you want to withdraw 1000 BTC? E.g enter 2 to withdraw 2000 BTC: ABORTING, INVALID NUMBER, PLEASE SPECIFY NUMBER 1-1000!