3v4l.org

run code in 300+ PHP versions simultaneously
<?php $today=date("D"); $time1=strtotime("now"); $time2=strtotime("11:59pm"); //echo date('m-d-Y',strtotime("next Thursday")); //echo $today; if ($today=="Tue" || $today=="Wed" ) { $day1="Friday ".date('m-d-Y',strtotime("next Friday")); $day2="Tuesday ".date('m-d-Y',strtotime("next Tuesday")); if ($today=="Tue") { $day3="Wednesday ".date('m-d-Y',strtotime("+1 week 1 days")); $day4="Thursday ".date('m-d-Y',strtotime("next Thursday")); } else{ $day3="Wednesday ".date('m-d-Y',strtotime("next Wednesday")); $day4="Thursday ".date('m-d-Y',strtotime("next Thursday")); } } echo "day1 -->".$day1."day2 -->".$day2."day3 -->".$day3."day4 -->".$day4;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 74
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 37, Position 2 = 56
Branch analysis from position: 37
1 jumps found. (Code = 42) Position 1 = 74
Branch analysis from position: 74
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 56
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 74
Branch analysis from position: 16
filename:       /in/PDNvN
function name:  (null)
number of ops:  83
compiled vars:  !0 = $today, !1 = $time1, !2 = $time2, !3 = $day1, !4 = $day2, !5 = $day3, !6 = $day4
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'D'
          2        DO_ICALL                                         $7      
          3        ASSIGN                                                   !0, $7
    3     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 'now'
          6        DO_ICALL                                         $9      
          7        ASSIGN                                                   !1, $9
    4     8        INIT_FCALL                                               'strtotime'
          9        SEND_VAL                                                 '11%3A59pm'
         10        DO_ICALL                                         $11     
         11        ASSIGN                                                   !2, $11
    8    12        IS_EQUAL                                         ~13     !0, 'Tue'
         13      > JMPNZ_EX                                         ~13     ~13, ->16
         14    >   IS_EQUAL                                         ~14     !0, 'Wed'
         15        BOOL                                             ~13     ~14
         16    > > JMPZ                                                     ~13, ->74
    9    17    >   INIT_FCALL                                               'date'
         18        SEND_VAL                                                 'm-d-Y'
         19        INIT_FCALL                                               'strtotime'
         20        SEND_VAL                                                 'next+Friday'
         21        DO_ICALL                                         $15     
         22        SEND_VAR                                                 $15
         23        DO_ICALL                                         $16     
         24        CONCAT                                           ~17     'Friday+', $16
         25        ASSIGN                                                   !3, ~17
   10    26        INIT_FCALL                                               'date'
         27        SEND_VAL                                                 'm-d-Y'
         28        INIT_FCALL                                               'strtotime'
         29        SEND_VAL                                                 'next+Tuesday'
         30        DO_ICALL                                         $19     
         31        SEND_VAR                                                 $19
         32        DO_ICALL                                         $20     
         33        CONCAT                                           ~21     'Tuesday+', $20
         34        ASSIGN                                                   !4, ~21
   11    35        IS_EQUAL                                                 !0, 'Tue'
         36      > JMPZ                                                     ~23, ->56
   12    37    >   INIT_FCALL                                               'date'
         38        SEND_VAL                                                 'm-d-Y'
         39        INIT_FCALL                                               'strtotime'
         40        SEND_VAL                                                 '%2B1+week+1+days'
         41        DO_ICALL                                         $24     
         42        SEND_VAR                                                 $24
         43        DO_ICALL                                         $25     
         44        CONCAT                                           ~26     'Wednesday+', $25
         45        ASSIGN                                                   !5, ~26
   13    46        INIT_FCALL                                               'date'
         47        SEND_VAL                                                 'm-d-Y'
         48        INIT_FCALL                                               'strtotime'
         49        SEND_VAL                                                 'next+Thursday'
         50        DO_ICALL                                         $28     
         51        SEND_VAR                                                 $28
         52        DO_ICALL                                         $29     
         53        CONCAT                                           ~30     'Thursday+', $29
         54        ASSIGN                                                   !6, ~30
         55      > JMP                                                      ->74
   16    56    >   INIT_FCALL                                               'date'
         57        SEND_VAL                                                 'm-d-Y'
         58        INIT_FCALL                                               'strtotime'
         59        SEND_VAL                                                 'next+Wednesday'
         60        DO_ICALL                                         $32     
         61        SEND_VAR                                                 $32
         62        DO_ICALL                                         $33     
         63        CONCAT                                           ~34     'Wednesday+', $33
         64        ASSIGN                                                   !5, ~34
   17    65        INIT_FCALL                                               'date'
         66        SEND_VAL                                                 'm-d-Y'
         67        INIT_FCALL                                               'strtotime'
         68        SEND_VAL                                                 'next+Thursday'
         69        DO_ICALL                                         $36     
         70        SEND_VAR                                                 $36
         71        DO_ICALL                                         $37     
         72        CONCAT                                           ~38     'Thursday+', $37
         73        ASSIGN                                                   !6, ~38
   22    74    >   CONCAT                                           ~40     'day1+--%3E', !3
         75        CONCAT                                           ~41     ~40, 'day2+--%3E'
         76        CONCAT                                           ~42     ~41, !4
         77        CONCAT                                           ~43     ~42, 'day3+--%3E'
         78        CONCAT                                           ~44     ~43, !5
         79        CONCAT                                           ~45     ~44, 'day4+--%3E'
         80        CONCAT                                           ~46     ~45, !6
         81        ECHO                                                     ~46
         82      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.35 ms | 1400 KiB | 17 Q