3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('Y-m-d H:i:s', strtotime('this Monday midnight', strtotime('2014-07-13'))); echo date('Y-m-d H:i:s', strtotime('this Monday midnight', strtotime('2014-07-14T17:00:00'))); echo date('Y-m-d H:i:s', strtotime('this Monday midnight', strtotime('2014-07-15T17:00:00'))); echo date('Y-m-d H:i:s', strtotime('next Monday midnight', strtotime('2014-07-14T17:00:00'))); echo date('Y-m-d H:i:s', strtotime('next Monday midnight', strtotime('2014-07-15T17:00:00'))); echo date('Y-m-d H:i:s', strtotime('next Monday midnight'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EV1hs
function name:  (null)
number of ops:  69
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
          2        INIT_FCALL                                               'strtotime'
          3        SEND_VAL                                                 'this+Monday+midnight'
          4        INIT_FCALL                                               'strtotime'
          5        SEND_VAL                                                 '2014-07-13'
          6        DO_ICALL                                         $0      
          7        SEND_VAR                                                 $0
          8        DO_ICALL                                         $1      
          9        SEND_VAR                                                 $1
         10        DO_ICALL                                         $2      
         11        ECHO                                                     $2
    5    12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         14        INIT_FCALL                                               'strtotime'
         15        SEND_VAL                                                 'this+Monday+midnight'
         16        INIT_FCALL                                               'strtotime'
         17        SEND_VAL                                                 '2014-07-14T17%3A00%3A00'
         18        DO_ICALL                                         $3      
         19        SEND_VAR                                                 $3
         20        DO_ICALL                                         $4      
         21        SEND_VAR                                                 $4
         22        DO_ICALL                                         $5      
         23        ECHO                                                     $5
    6    24        INIT_FCALL                                               'date'
         25        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         26        INIT_FCALL                                               'strtotime'
         27        SEND_VAL                                                 'this+Monday+midnight'
         28        INIT_FCALL                                               'strtotime'
         29        SEND_VAL                                                 '2014-07-15T17%3A00%3A00'
         30        DO_ICALL                                         $6      
         31        SEND_VAR                                                 $6
         32        DO_ICALL                                         $7      
         33        SEND_VAR                                                 $7
         34        DO_ICALL                                         $8      
         35        ECHO                                                     $8
    8    36        INIT_FCALL                                               'date'
         37        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         38        INIT_FCALL                                               'strtotime'
         39        SEND_VAL                                                 'next+Monday+midnight'
         40        INIT_FCALL                                               'strtotime'
         41        SEND_VAL                                                 '2014-07-14T17%3A00%3A00'
         42        DO_ICALL                                         $9      
         43        SEND_VAR                                                 $9
         44        DO_ICALL                                         $10     
         45        SEND_VAR                                                 $10
         46        DO_ICALL                                         $11     
         47        ECHO                                                     $11
    9    48        INIT_FCALL                                               'date'
         49        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         50        INIT_FCALL                                               'strtotime'
         51        SEND_VAL                                                 'next+Monday+midnight'
         52        INIT_FCALL                                               'strtotime'
         53        SEND_VAL                                                 '2014-07-15T17%3A00%3A00'
         54        DO_ICALL                                         $12     
         55        SEND_VAR                                                 $12
         56        DO_ICALL                                         $13     
         57        SEND_VAR                                                 $13
         58        DO_ICALL                                         $14     
         59        ECHO                                                     $14
   11    60        INIT_FCALL                                               'date'
         61        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         62        INIT_FCALL                                               'strtotime'
         63        SEND_VAL                                                 'next+Monday+midnight'
         64        DO_ICALL                                         $15     
         65        SEND_VAR                                                 $15
         66        DO_ICALL                                         $16     
         67        ECHO                                                     $16
         68      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.94 ms | 1400 KiB | 17 Q