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;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 62, Position 2 = 63
Branch analysis from position: 62
2 jumps found. (Code = 43) Position 1 = 75, Position 2 = 77
Branch analysis from position: 75
1 jumps found. (Code = 42) Position 1 = 78
Branch analysis from position: 78
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 77
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 63
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 62, Position 2 = 63
Branch analysis from position: 62
Branch analysis from position: 63
filename:       /in/teK81
function name:  (null)
number of ops:  88
compiled vars:  !0 = $processing_method, !1 = $TTDT, !2 = $IWUT, !3 = $INKT, !4 = $BWUT, !5 = $PMRT, !6 = $AWUT, !7 = $MMRT, !8 = $number_of_runs, !9 = $number_of_sets, !10 = $start_up_time, !11 = $start_up_cost, !12 = $PT, !13 = $printing_cost, !14 = $operation_cost, !15 = $minimum_operation_cost, !16 = $operation_time, !17 = $setup_price, !18 = $plate_price, !19 = $running_price, !20 = $selling_price
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_CONSTANT                                   ~21     'SHEETWORK'
          1        ASSIGN                                                   !0, ~21
    5     2        FETCH_CONSTANT                                   ~23     'WORKTURN'
          3        IS_EQUAL                                                 !0, ~23
          4      > JMPZ                                                     ~24, ->7
          5    >   ASSIGN                                                   !1, 0.25
          6      > JMP                                                      ->13
    6     7    >   FETCH_CONSTANT                                   ~26     'WORKTUMBLE'
          8        IS_EQUAL                                                 !0, ~26
          9      > JMPZ                                                     ~27, ->12
         10    >   ASSIGN                                                   !1, 0.25
         11      > JMP                                                      ->13
    7    12    >   ASSIGN                                                   !1, 0
   11    13    >   ASSIGN                                                   !2, 0.266667
   12    14        ASSIGN                                                   !3, 0.266667
   13    15        ASSIGN                                                   !4, 0.266667
   14    16        ASSIGN                                                   !5, 0.4
   15    17        ASSIGN                                                   !6, 0.166667
   16    18        ASSIGN                                                   !7, 0.25
   21    19        INIT_FCALL                                               'ceil'
         20        SEND_VAL                                                 1
         21        DO_ICALL                                         $36     
         22        INIT_FCALL                                               'ceil'
         23        SEND_VAL                                                 1
         24        DO_ICALL                                         $37     
         25        ADD                                              ~38     $36, $37
         26        ASSIGN                                                   !8, ~38
   23    27        INIT_FCALL                                               'ceil'
         28        SEND_VAL                                                 1
         29        DO_ICALL                                         $40     
         30        INIT_FCALL                                               'ceil'
         31        SEND_VAL                                                 1
         32        DO_ICALL                                         $41     
         33        ADD                                              ~42     $40, $41
         34        MUL                                              ~43     ~42, 1
         35        ASSIGN                                                   !9, ~43
   25    36        ADD                                              ~45     !7, !6
         37        ADD                                              ~46     ~45, !2
         38        ADD                                              ~47     ~46, !3
         39        ADD                                              ~48     ~47, !4
         40        ADD                                              ~49     ~48, !5
         41        ADD                                              ~50     ~49, !1
         42        ASSIGN                                                   !10, ~50
   27    43        ADD                                              ~52     !7, !6
         44        ADD                                              ~53     ~52, !2
         45        ADD                                              ~54     ~53, !3
         46        ADD                                              ~55     ~54, !4
         47        ADD                                              ~56     ~55, !5
         48        ADD                                              ~57     ~56, !1
         49        MUL                                              ~58     ~57, 94.1
         50        ASSIGN                                                   !11, ~58
   30    51        MUL                                              ~60     !8, 250
         52        MUL                                              ~61     ~60, 1.1
         53        DIV                                              ~62     ~61, 6000
         54        ASSIGN                                                   !12, ~62
   35    55        MUL                                              ~64     !12, 94.1
         56        ASSIGN                                                   !13, ~64
   38    57        ADD                                              ~66     !13, !11
         58        ASSIGN                                                   !14, ~66
   40    59        ASSIGN                                                   !15, 60
   42    60        IS_SMALLER_OR_EQUAL                                      !14, !15
         61      > JMPZ                                                     ~69, ->63
         62    >   ASSIGN                                                   !14, !15
   45    63    >   ADD                                              ~71     !7, !6
         64        ADD                                              ~72     ~71, !2
         65        ADD                                              ~73     ~72, !3
         66        ADD                                              ~74     ~73, !4
         67        ADD                                              ~75     ~74, !5
         68        ADD                                              ~76     ~75, !12
         69        ADD                                              ~77     ~76, !1
         70        ASSIGN                                                   !16, ~77
   48    71        MUL                                              ~79     !18, 8
         72        ASSIGN                                                   !17, ~79
   50    73        INIT_FCALL                                               'ceil'
         74      > JMPZ                                                     <true>, ->77
         75    >   QM_ASSIGN                                        ~81     2
         76      > JMP                                                      ->78
         77    >   QM_ASSIGN                                        ~81     1
         78    >   MUL                                              ~82     ~81, 2000
         79        DIV                                              ~83     ~82, 1000
         80        SEND_VAL                                                 ~83
         81        DO_ICALL                                         $84     
         82        MUL                                              ~85     $84, 8
         83        ASSIGN                                                   !19, ~85
   51    84        ADD                                              ~87     !17, !19
         85        ASSIGN                                                   !20, ~87
   52    86        ECHO                                                     !20
   53    87      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.85 ms | 1404 KiB | 15 Q