3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mission_type = 0; $start_dttm = ($mission_type == 0) ? strtotime("last Monday") : strtotime("last Friday"); // 리그 시작 일자 $end_dttm = ($mission_type == 0) ? strtotime("next Tuesday") : strtotime("next Thursday"); // 리그 종료 일자 // echo strtotime("last Monday"); // echo time(); echo date('ymd', strtotime("this Tuesday")); echo '<br>'; echo date('ymd', strtotime("next Tuesday")); // echo '<br>'; // echo date('ymd', $start_dttm); // echo strtotime("this Tuesday"); // echo strtotime("next Tuesday"); $nextTuesday = strtotime('next wednesday'); $weekNo = date('W'); $weekNoNextTuesday = date('W', $nextTuesday); //echo $nextTuesday; // echo $weekNo; // echo $weekNoNextTuesday; if ($weekNoNextTuesday != $weekNo) { //past tuesday echo 0; } else { echo 1; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 20
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 24
Branch analysis from position: 24
2 jumps found. (Code = 43) Position 1 = 57, Position 2 = 59
Branch analysis from position: 57
1 jumps found. (Code = 42) Position 1 = 60
Branch analysis from position: 60
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 59
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
2 jumps found. (Code = 43) Position 1 = 57, Position 2 = 59
Branch analysis from position: 57
Branch analysis from position: 59
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 20
Branch analysis from position: 15
Branch analysis from position: 20
filename:       /in/DSjvm
function name:  (null)
number of ops:  61
compiled vars:  !0 = $mission_type, !1 = $start_dttm, !2 = $end_dttm, !3 = $nextTuesday, !4 = $weekNo, !5 = $weekNoNextTuesday
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    5     1        IS_EQUAL                                                 !0, 0
          2      > JMPZ                                                     ~7, ->8
          3    >   INIT_FCALL                                               'strtotime'
          4        SEND_VAL                                                 'last+Monday'
          5        DO_ICALL                                         $8      
          6        QM_ASSIGN                                        ~9      $8
          7      > JMP                                                      ->12
          8    >   INIT_FCALL                                               'strtotime'
          9        SEND_VAL                                                 'last+Friday'
         10        DO_ICALL                                         $10     
         11        QM_ASSIGN                                        ~9      $10
         12    >   ASSIGN                                                   !1, ~9
    6    13        IS_EQUAL                                                 !0, 0
         14      > JMPZ                                                     ~12, ->20
         15    >   INIT_FCALL                                               'strtotime'
         16        SEND_VAL                                                 'next+Tuesday'
         17        DO_ICALL                                         $13     
         18        QM_ASSIGN                                        ~14     $13
         19      > JMP                                                      ->24
         20    >   INIT_FCALL                                               'strtotime'
         21        SEND_VAL                                                 'next+Thursday'
         22        DO_ICALL                                         $15     
         23        QM_ASSIGN                                        ~14     $15
         24    >   ASSIGN                                                   !2, ~14
   11    25        INIT_FCALL                                               'date'
         26        SEND_VAL                                                 'ymd'
         27        INIT_FCALL                                               'strtotime'
         28        SEND_VAL                                                 'this+Tuesday'
         29        DO_ICALL                                         $17     
         30        SEND_VAR                                                 $17
         31        DO_ICALL                                         $18     
         32        ECHO                                                     $18
   12    33        ECHO                                                     '%3Cbr%3E'
   13    34        INIT_FCALL                                               'date'
         35        SEND_VAL                                                 'ymd'
         36        INIT_FCALL                                               'strtotime'
         37        SEND_VAL                                                 'next+Tuesday'
         38        DO_ICALL                                         $19     
         39        SEND_VAR                                                 $19
         40        DO_ICALL                                         $20     
         41        ECHO                                                     $20
   22    42        INIT_FCALL                                               'strtotime'
         43        SEND_VAL                                                 'next+wednesday'
         44        DO_ICALL                                         $21     
         45        ASSIGN                                                   !3, $21
   23    46        INIT_FCALL                                               'date'
         47        SEND_VAL                                                 'W'
         48        DO_ICALL                                         $23     
         49        ASSIGN                                                   !4, $23
   24    50        INIT_FCALL                                               'date'
         51        SEND_VAL                                                 'W'
         52        SEND_VAR                                                 !3
         53        DO_ICALL                                         $25     
         54        ASSIGN                                                   !5, $25
   29    55        IS_NOT_EQUAL                                             !5, !4
         56      > JMPZ                                                     ~27, ->59
   31    57    >   ECHO                                                     0
         58      > JMP                                                      ->60
   33    59    >   ECHO                                                     1
   34    60    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.31 ms | 1400 KiB | 17 Q