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); }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0160.00016.63
8.3.50.0030.01716.28
8.3.40.0110.00318.82
8.3.30.0110.00418.84
8.3.20.0000.00720.03
8.3.10.0070.00023.64
8.3.00.0080.00023.36
8.2.180.0140.00418.55
8.2.170.0140.00722.96
8.2.160.0120.00320.35
8.2.150.0090.00024.18
8.2.140.0030.00624.66
8.2.130.0040.00422.21
8.2.120.0080.00026.35
8.2.110.0070.00321.04
8.2.100.0060.00617.91
8.2.90.0000.00919.63
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0060.00317.93
8.2.50.0050.00518.07
8.2.40.0030.00618.35
8.2.30.0060.00318.06
8.2.20.0000.00717.98
8.2.10.0040.00418.14
8.2.00.0000.00718.22
8.1.280.0070.01025.92
8.1.270.0100.00323.93
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0030.00623.92
8.1.230.0040.00720.88
8.1.220.0040.00417.77
8.1.210.0040.00418.82
8.1.200.0040.00417.48
8.1.190.0090.00017.23
8.1.180.0080.00018.10
8.1.170.0050.00318.27
8.1.160.0080.00018.98
8.1.150.0040.00418.93
8.1.140.0040.00417.65
8.1.130.0000.00718.86
8.1.120.0000.00717.40
8.1.110.0030.00617.40
8.1.100.0000.00817.41
8.1.90.0050.00317.50
8.1.80.0070.00017.54
8.1.70.0040.00417.45
8.1.60.0040.00417.67
8.1.50.0070.00417.59
8.1.40.0040.00417.50
8.1.30.0040.00417.71
8.1.20.0000.00817.73
8.1.10.0030.00617.53
8.1.00.0030.00617.50
8.0.300.0040.00420.21
8.0.290.0000.01116.75
8.0.280.0030.00318.54
8.0.270.0030.00317.30
8.0.260.0030.00318.96
8.0.250.0000.00717.03
8.0.240.0000.00617.02
8.0.230.0040.00417.17
8.0.220.0020.00517.05
8.0.210.0000.00716.99
8.0.200.0000.00717.01
8.0.190.0080.00017.13
8.0.180.0000.00717.01
8.0.170.0040.00416.98
8.0.160.0040.00417.10
8.0.150.0040.00417.02
8.0.140.0000.01016.91
8.0.130.0000.00513.47
8.0.120.0040.00416.92
8.0.110.0040.00416.89
8.0.100.0000.00816.92
8.0.90.0000.00716.91
8.0.80.0040.01117.03
8.0.70.0000.00717.05
8.0.60.0070.00016.89
8.0.50.0040.00417.05
8.0.30.0100.01017.10
8.0.20.0070.01117.40
8.0.10.0080.00017.00
8.0.00.0070.01116.80
7.4.330.0050.00016.67
7.4.320.0000.00616.48
7.4.300.0030.00316.46
7.4.290.0000.00716.55
7.4.280.0080.00016.53
7.4.270.0030.00316.50
7.4.260.0070.00016.54
7.4.250.0070.00016.56
7.4.240.0040.00416.53
7.4.230.0040.00416.68
7.4.220.0130.00616.59
7.4.210.0070.01116.66
7.4.200.0070.00016.58
7.4.160.0120.00516.43
7.4.150.0080.01117.40
7.4.140.0090.01017.86
7.4.130.0120.00616.77
7.4.120.0090.01016.58
7.4.110.0060.01216.48
7.4.100.0100.01616.48
7.4.90.0070.01016.58
7.4.80.0060.01019.39
7.4.70.0200.00316.60
7.4.60.0070.01416.58
7.4.50.0090.00616.51
7.4.40.0140.00616.64
7.4.30.0060.01016.36
7.4.00.0120.00015.18
7.3.330.0030.00313.05
7.3.320.0030.00313.01
7.3.310.0070.00016.07
7.3.300.0000.00716.33
7.3.290.0000.00716.36
7.3.280.0070.00816.30
7.3.270.0180.00017.40
7.3.260.0080.01116.38
7.3.250.0080.01016.34
7.3.240.0070.01216.33
7.3.230.0130.00316.56
7.3.210.0060.01216.58
7.3.200.0090.00916.20
7.3.190.0090.00616.37
7.3.180.0170.00616.48
7.3.170.0120.00616.25
7.3.160.0080.00816.35
7.2.330.0120.00616.66
7.2.320.0030.01616.65
7.2.310.0120.00616.59
7.2.300.0100.01316.48
7.2.290.0130.01016.56
7.2.60.0060.01016.93
7.2.50.0060.00616.75
7.1.200.0040.01115.67
7.1.110.0200.01015.88
7.1.100.0240.00916.07
7.1.90.0170.01016.01
7.1.80.0230.00415.90
7.1.70.0270.00015.32
7.1.60.1280.01033.13
7.1.50.0260.01232.98
7.1.40.0340.01332.53
7.1.30.0410.01632.58
7.1.20.0270.01032.54
7.1.10.0180.00714.83
7.1.00.0170.01014.73
7.0.250.0150.00915.89
7.0.240.0320.00716.06
7.0.230.0250.00015.88
7.0.220.0150.00915.91
7.0.210.0230.01014.88
7.0.200.0220.00314.81
7.0.190.0190.00514.72
7.0.180.0180.00914.43
7.0.170.0280.01014.26
7.0.160.0160.00914.25
7.0.150.0120.01214.28
7.0.140.0190.00614.32
7.0.130.0200.00714.54
7.0.120.0150.00914.56
7.0.110.0160.01014.66
7.0.100.0140.01414.62
7.0.90.0180.00914.32
7.0.80.0190.00914.66
7.0.70.0200.00714.35
7.0.60.0290.00614.24
7.0.50.0170.01014.35
7.0.40.0190.01014.59
7.0.30.0190.00914.90
7.0.20.0220.00614.54
7.0.10.0200.00714.48
7.0.00.0190.00814.54

preferences:
54.67 ms | 401 KiB | 5 Q