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); }
Output for 8.0.0 - 8.0.12, 8.0.14 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
Warning: include(): open_basedir restriction in effect. File(poloniex.class.php) is not within the allowed path(s): (/tmp:/in:/etc) 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 8.3.5
Warning: PHP Startup: Unable to load dynamic library 'sodium.so' (tried: /usr/lib/php/8.3.5/modules/sodium.so (libsodium.so.23: cannot open shared object file: No such file or directory), /usr/lib/php/8.3.5/modules/sodium.so.so (/usr/lib/php/8.3.5/modules/sodium.so.so: cannot open shared object file: No such file or directory)) in Unknown on line 0 Warning: include(): open_basedir restriction in effect. File(poloniex.class.php) is not within the allowed path(s): (/tmp:/in:/etc) 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 8.0.13
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 7.0.0 - 7.0.25, 7.1.0 - 7.1.11, 7.3.32 - 7.3.33, 7.4.33
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 7.2.29 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.32
Warning: include(): open_basedir restriction in effect. File(poloniex.class.php) is not within the allowed path(s): (/tmp:/in:/etc) 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 7.1.20, 7.2.5 - 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!

preferences:
157.34 ms | 403 KiB | 181 Q