3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = strtotime('now'); $next_monday = strtotime('Tuesday'); if (($next_monday-$now) < (3*86400)){ $next_monday = $next_monday + 604800;//add a week echo date('Y-m-d', $next_monday) . "T00:00:00"; }else{ echo date('Y-m-d', $next_monday) . "T00:00:00"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 20
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8UiIF
function name:  (null)
number of ops:  27
compiled vars:  !0 = $now, !1 = $next_monday
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 'now'
          2        DO_ICALL                                         $2      
          3        ASSIGN                                                   !0, $2
    3     4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 'Tuesday'
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    4     8        SUB                                              ~6      !1, !0
          9        IS_SMALLER                                               ~6, 259200
         10      > JMPZ                                                     ~7, ->20
    5    11    >   ADD                                              ~8      !1, 604800
         12        ASSIGN                                                   !1, ~8
    6    13        INIT_FCALL                                               'date'
         14        SEND_VAL                                                 'Y-m-d'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $10     
         17        CONCAT                                           ~11     $10, 'T00%3A00%3A00'
         18        ECHO                                                     ~11
         19      > JMP                                                      ->26
    8    20    >   INIT_FCALL                                               'date'
         21        SEND_VAL                                                 'Y-m-d'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                         $12     
         24        CONCAT                                           ~13     $12, 'T00%3A00%3A00'
         25        ECHO                                                     ~13
   11    26    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.36 ms | 1395 KiB | 17 Q