3v4l.org

run code in 300+ PHP versions simultaneously
<?php ##----------------------------------------------------- $processing_method= SHEETWORK; if ($processing_method == WORKTURN) {$TTDT= (15 /60); } elseif ($processing_method == WORKTUMBLE) {$TTDT= (15 /60); } else($TTDT=0); $IWUT = (2)*(8)/60; $INKT = (2)*(8)/60; $BWUT = (2)*(8)/60; $PMRT = (3)*(8)/ 60; $AWUT = (10)/60; $MMRT = (15)/60; $number_of_runs = ceil(4 / 4) + ceil(4 / 4) ; $number_of_sets = ( ceil(4 / 4) + ceil(4 / 4) )* 1; $start_up_time = $MMRT + $AWUT + $IWUT +$INKT+ $BWUT+ $PMRT + $TTDT; $start_up_cost = ($MMRT + $AWUT + $IWUT +$INKT+ $BWUT+ $PMRT +$TTDT) * (78.21 + 15.89); $PT = $number_of_runs * 250 * (1 + 10 / 100) / 6000; $printing_cost = $PT * (78.21 + 15.89); $operation_cost = $printing_cost + $start_up_cost ; $minimum_operation_cost = 60 * 1; if ($operation_cost <=$minimum_operation_cost) {$operation_cost = $minimum_operation_cost; } $operation_time = ($MMRT + $AWUT + $IWUT +$INKT+ $BWUT + $PMRT + $PT +$TTDT); $plate_price = ( 0 > 0 )?0:%selected_plate_sell_per_unit% ; $setup_price = 8 * $plate_price ; $running_price = ceil((250 * (4 + 4) * (4>1?2:1) )/1000) * 8; $selling_price = $setup_price + $running_price ;

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.0.10.0120.00616.77
8.0.00.0130.00717.05
7.4.140.0150.01116.46
7.4.130.0140.00816.26
7.4.120.0030.01316.18
7.4.110.0100.01316.31
7.4.100.0090.00916.43
7.4.90.0110.00816.24
7.4.80.0190.00616.51
7.4.70.0140.00616.35
7.4.60.0150.00616.45
7.4.50.0140.00716.39
7.4.40.0110.00816.30
7.4.30.0120.00916.43
7.4.20.0100.00616.14
7.4.10.0100.01016.51
7.4.00.0150.00616.48
7.3.260.0100.00716.11
7.3.250.0090.00916.04
7.3.240.0090.00916.32
7.3.230.0100.00716.30
7.3.220.0060.01116.32
7.3.210.0090.01016.21
7.3.200.0050.01016.15
7.3.190.0110.00516.14
7.3.180.0130.00616.19
7.3.170.0030.01416.07
7.3.160.0000.01816.38
7.3.150.0140.00316.31
7.3.140.0110.00616.16
7.3.130.0100.00716.33
7.3.120.0120.00916.07
7.3.110.0060.01216.11
7.3.100.0100.01016.28
7.3.90.0140.00316.20
7.3.80.0120.00416.13
7.3.70.0120.00616.00
7.3.60.0100.00916.07
7.3.50.0090.00815.94
7.3.40.0040.01515.93
7.3.30.0060.01216.11
7.3.20.0140.00416.02
7.3.10.0030.01616.18
7.3.00.0070.01016.23

preferences:
139.27 ms | 1394 KiB | 7 Q