3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = strtotime('now'); $next_monday = strtotime('Monday'); if (date('d', $next_monday-$now) < 3){ $next_monday = $next_monday + strtotime('+1 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 = 15, Position 2 = 27
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N4sNJ
function name:  (null)
number of ops:  34
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                                                 'Monday'
          6        DO_ICALL                                         $4      
          7        ASSIGN                                                   !1, $4
    4     8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'd'
         10        SUB                                              ~6      !1, !0
         11        SEND_VAL                                                 ~6
         12        DO_ICALL                                         $7      
         13        IS_SMALLER                                               $7, 3
         14      > JMPZ                                                     ~8, ->27
    5    15    >   INIT_FCALL                                               'strtotime'
         16        SEND_VAL                                                 '%2B1+week'
         17        DO_ICALL                                         $9      
         18        ADD                                              ~10     !1, $9
         19        ASSIGN                                                   !1, ~10
    6    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
         26      > JMP                                                      ->33
    8    27    >   INIT_FCALL                                               'date'
         28        SEND_VAL                                                 'Y-m-d'
         29        SEND_VAR                                                 !1
         30        DO_ICALL                                         $14     
         31        CONCAT                                           ~15     $14, 'T00%3A00%3A00'
         32        ECHO                                                     ~15
   11    33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.07 ms | 1388 KiB | 17 Q