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); $setup_price = 8 * $plate_price ; $running_price = ceil((250 * (4 + 4) * (4>1?2:1) )/1000) * 8; $selling_price = $setup_price + $running_price ; echo $selling_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.3.60.0000.01516.63
8.3.50.0040.01116.61
8.3.40.0040.01118.79
8.3.30.0070.00718.53
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0000.00726.16
8.2.180.0150.00025.92
8.2.170.0120.00318.97
8.2.160.0160.00322.96
8.2.150.0000.00725.66
8.2.140.0030.00724.66
8.2.130.0070.00026.16
8.2.120.0040.01526.35
8.2.110.0000.00922.21
8.2.100.0040.00819.52
8.2.90.0040.00417.88
8.2.80.0040.00418.73
8.2.70.0080.00017.75
8.2.60.0080.00017.80
8.2.50.0040.00418.05
8.2.40.0080.00018.28
8.2.30.0110.00017.95
8.2.20.0040.00418.01
8.2.10.0050.00320.91
8.2.00.0040.00419.26
8.1.280.0140.00425.92
8.1.270.0050.00323.99
8.1.260.0000.00828.09
8.1.250.0040.00428.09
8.1.240.0060.01023.91
8.1.230.0080.00320.97
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0080.00017.35
8.1.190.0080.00017.23
8.1.180.0040.00418.10
8.1.170.0000.00818.56
8.1.160.0070.00018.82
8.1.150.0040.00418.84
8.1.140.0040.00418.80
8.1.130.0030.00320.16
8.1.120.0000.00817.38
8.1.110.0050.00317.29
8.1.100.0050.00217.29
8.1.90.0040.00417.40
8.1.80.0050.00217.30
8.1.70.0040.00417.42
8.1.60.0080.00017.55
8.1.50.0030.00517.47
8.1.40.0000.00817.50
8.1.30.0080.00017.56
8.1.20.0040.00417.59
8.1.10.0040.00417.37
8.1.00.0000.00817.46
8.0.300.0060.00318.77
8.0.290.0040.00416.75
8.0.280.0080.00018.33
8.0.270.0030.00318.03
8.0.260.0000.00618.38
8.0.250.0000.00717.05
8.0.240.0040.00416.96
8.0.230.0040.00417.07
8.0.220.0070.00016.97
8.0.210.0070.00016.92
8.0.200.0040.00416.89
8.0.190.0080.00016.95
8.0.180.0000.00716.95
8.0.170.0000.00816.84
8.0.160.0040.00416.96
8.0.150.0000.00716.86
8.0.140.0060.00316.95
8.0.130.0000.00513.44
8.0.120.0000.00816.94
8.0.110.0040.00416.96
8.0.100.0050.00316.84
8.0.90.0080.00016.94
8.0.80.0050.01117.01
8.0.70.0040.00416.85
8.0.60.0040.00416.80
8.0.50.0000.00816.84
8.0.30.0110.00617.03
8.0.20.0030.01717.13
8.0.10.0150.00317.05
8.0.00.0100.01717.27
7.4.330.0050.00015.55
7.4.320.0030.00316.46
7.4.300.0030.00516.61
7.4.290.0030.00316.56
7.4.280.0040.00416.59
7.4.270.0030.00316.60
7.4.260.0050.00013.27
7.4.250.0040.00416.57
7.4.240.0070.00016.62
7.4.230.0030.00316.60
7.4.220.0010.00616.40
7.4.210.0040.00916.55
7.4.200.0030.00316.59
7.4.140.0090.01516.50
7.4.130.0110.01416.39
7.4.120.0060.01316.49
7.4.110.0100.00716.43
7.4.100.0070.01316.43
7.4.90.0040.01416.73
7.4.80.0030.01416.33
7.4.70.0080.01116.61
7.4.60.0140.00316.49
7.4.50.0060.01216.63
7.4.40.0170.00416.48
7.4.30.0150.00316.61
7.4.20.0120.00616.56
7.4.10.0110.00716.46
7.4.00.0120.00616.36
7.3.330.0000.00716.32
7.3.320.0000.00613.25
7.3.310.0070.00016.19
7.3.300.0070.00016.34
7.3.290.0020.01116.31
7.3.260.0100.00716.47
7.3.250.0060.01216.29
7.3.240.0070.01116.57
7.3.230.0090.00916.31
7.3.220.0070.01716.32
7.3.210.0130.00416.48
7.3.200.0140.00416.09
7.3.190.0040.01416.33
7.3.180.0030.01416.26
7.3.170.0060.01216.29
7.3.160.0110.00716.45
7.3.150.0140.00416.49
7.3.140.0140.00416.29
7.3.130.0060.01216.36
7.3.120.0120.01316.37
7.3.110.0100.01616.40
7.3.100.0030.01616.32
7.3.90.0090.01516.30
7.3.80.0140.01016.09
7.3.70.0030.01616.33
7.3.60.0160.01016.20
7.3.50.0120.01416.38
7.3.40.0190.00416.12
7.3.30.0130.00916.16
7.3.20.0160.01016.14
7.3.10.0160.01116.46
7.3.00.0130.01316.23

preferences:
43.9 ms | 401 KiB | 5 Q