3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = strtotime('now'); $next_monday = strtotime('Tuesday'); if ($next_monday < (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 = 10, Position 2 = 19
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EoNRn
function name:  (null)
number of ops:  26
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        IS_SMALLER                                               !1, 259200
          9      > JMPZ                                                     ~6, ->19
    5    10    >   ADD                                              ~7      !1, 604800
         11        ASSIGN                                                   !1, ~7
    6    12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'Y-m-d'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $9      
         16        CONCAT                                           ~10     $9, 'T00%3A00%3A00'
         17        ECHO                                                     ~10
         18      > JMP                                                      ->25
    8    19    >   INIT_FCALL                                               'date'
         20        SEND_VAL                                                 'Y-m-d'
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $11     
         23        CONCAT                                           ~12     $11, 'T00%3A00%3A00'
         24        ECHO                                                     ~12
   11    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.28 ms | 1400 KiB | 17 Q