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 + 6000; 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 = 24
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/N1IjL
function name:  (null)
number of ops:  31
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, ->24
    5    15    >   ADD                                              ~9      !1, 6000
         16        ASSIGN                                                   !1, ~9
    6    17        INIT_FCALL                                               'date'
         18        SEND_VAL                                                 'Y-m-d'
         19        SEND_VAR                                                 !1
         20        DO_ICALL                                         $11     
         21        CONCAT                                           ~12     $11, 'T00%3A00%3A00'
         22        ECHO                                                     ~12
         23      > JMP                                                      ->30
    8    24    >   INIT_FCALL                                               'date'
         25        SEND_VAL                                                 'Y-m-d'
         26        SEND_VAR                                                 !1
         27        DO_ICALL                                         $13     
         28        CONCAT                                           ~14     $13, 'T00%3A00%3A00'
         29        ECHO                                                     ~14
   11    30    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.29 ms | 1388 KiB | 17 Q