3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo date('m.d.y', strtotime('last Monday', strtotime('+ 28 day'))) . "\n"; echo date('m.d.y',strtotime('next Monday', strtotime('+ 28 day'))) . "\n"; echo date('m.d.y',strtotime('last Monday')) . "\n"; echo date('m.d.y',strtotime('last Monday', strtotime('last Monday'))) . "\n"; echo "\n"; echo date('m.d.y',strtotime('now - ' . intval(date('N')) - 1 . ' day')); ?>
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/hMnpp
function name:  (null)
number of ops:  67
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   2     0  E >   INIT_FCALL                                               'date'
         1        SEND_VAL                                                 'm.d.y'
         2        INIT_FCALL                                               'strtotime'
         3        SEND_VAL                                                 'last+Monday'
         4        INIT_FCALL                                               'strtotime'
         5        SEND_VAL                                                 '%2B+28+day'
         6        DO_ICALL                                         $0      
         7        SEND_VAR                                                 $0
         8        DO_ICALL                                         $1      
         9        SEND_VAR                                                 $1
        10        DO_ICALL                                         $2      
        11        CONCAT                                           ~3      $2, '%0A'
        12        ECHO                                                     ~3
   3    13        INIT_FCALL                                               'date'
        14        SEND_VAL                                                 'm.d.y'
        15        INIT_FCALL                                               'strtotime'
        16        SEND_VAL                                                 'next+Monday'
        17        INIT_FCALL                                               'strtotime'
        18        SEND_VAL                                                 '%2B+28+day'
        19        DO_ICALL                                         $4      
        20        SEND_VAR                                                 $4
        21        DO_ICALL                                         $5      
        22        SEND_VAR                                                 $5
        23        DO_ICALL                                         $6      
        24        CONCAT                                           ~7      $6, '%0A'
        25        ECHO                                                     ~7
   4    26        INIT_FCALL                                               'date'
        27        SEND_VAL                                                 'm.d.y'
        28        INIT_FCALL                                               'strtotime'
        29        SEND_VAL                                                 'last+Monday'
        30        DO_ICALL                                         $8      
        31        SEND_VAR                                                 $8
        32        DO_ICALL                                         $9      
        33        CONCAT                                           ~10     $9, '%0A'
        34        ECHO                                                     ~10
   5    35        INIT_FCALL                                               'date'
        36        SEND_VAL                                                 'm.d.y'
        37        INIT_FCALL                                               'strtotime'
        38        SEND_VAL                                                 'last+Monday'
        39        INIT_FCALL                                               'strtotime'
        40        SEND_VAL                                                 'last+Monday'
        41        DO_ICALL                                         $11     
        42        SEND_VAR                                                 $11
        43        DO_ICALL                                         $12     
        44        SEND_VAR                                                 $12
        45        DO_ICALL                                         $13     
        46        CONCAT                                           ~14     $13, '%0A'
        47        ECHO                                                     ~14
   6    48        ECHO                                                     '%0A'
   7    49        INIT_FCALL                                               'date'
        50        SEND_VAL                                                 'm.d.y'
        51        INIT_FCALL                                               'strtotime'
        52        INIT_FCALL                                               'intval'
        53        INIT_FCALL                                               'date'
        54        SEND_VAL                                                 'N'
        55        DO_ICALL                                         $15     
        56        SEND_VAR                                                 $15
        57        DO_ICALL                                         $16     
        58        CONCAT                                           ~17     'now+-+', $16
        59        SUB                                              ~18     ~17, 1
        60        CONCAT                                           ~19     ~18, '+day'
        61        SEND_VAL                                                 ~19
        62        DO_ICALL                                         $20     
        63        SEND_VAR                                                 $20
        64        DO_ICALL                                         $21     
        65        ECHO                                                     $21
        66      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.2.0