3v4l.org

run code in 300+ PHP versions simultaneously
<?php $oneWeek = strtotime('now +1 week'); if (date('j', $oneWeek) < date('j')) { $oneWeek = strtotime('last day of this month'); } echo date('Y-m-d', $oneWeek);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/ipOeI
function name:  (null)
number of ops:  23
compiled vars:  !0 = $oneWeek
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'strtotime'
          1        SEND_VAL                                                 'now+%2B1+week'
          2        DO_ICALL                                         $1      
          3        ASSIGN                                                   !0, $1
    4     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'j'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8        INIT_FCALL                                               'date'
          9        SEND_VAL                                                 'j'
         10        DO_ICALL                                         $4      
         11        IS_SMALLER                                               $3, $4
         12      > JMPZ                                                     ~5, ->17
    5    13    >   INIT_FCALL                                               'strtotime'
         14        SEND_VAL                                                 'last+day+of+this+month'
         15        DO_ICALL                                         $6      
         16        ASSIGN                                                   !0, $6
    7    17    >   INIT_FCALL                                               'date'
         18        SEND_VAL                                                 'Y-m-d'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                         $8      
         21        ECHO                                                     $8
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.01 ms | 1395 KiB | 17 Q