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;
based on sPadB
Output for 8.0.0 - 8.0.2
Fatal error: Uncaught Error: Undefined constant "SHEETWORK" in /in/teK81:3 Stack trace: #0 {main} thrown in /in/teK81 on line 3
Process exited with code 255.
Output for 7.3.0 - 7.3.26, 7.4.0 - 7.4.14
Warning: Use of undefined constant SHEETWORK - assumed 'SHEETWORK' (this will throw an Error in a future version of PHP) in /in/teK81 on line 3 Warning: Use of undefined constant WORKTURN - assumed 'WORKTURN' (this will throw an Error in a future version of PHP) in /in/teK81 on line 5 Warning: Use of undefined constant WORKTUMBLE - assumed 'WORKTUMBLE' (this will throw an Error in a future version of PHP) in /in/teK81 on line 6 Notice: Undefined variable: plate_price in /in/teK81 on line 48 32