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;
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.4, 8.3.6
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 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 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.31, 7.3.33, 7.4.0 - 7.4.25, 7.4.27 - 7.4.33
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
Output for 7.3.32, 7.4.26
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 32

preferences:
168.99 ms | 402 KiB | 150 Q