3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('Y-m-d H:i:s',strtotime('last Monday')); echo " - "; echo date('Y-m-d H:i:s',mktime(0, 0, 0)); echo "\n"; date('Y-m-15 H:i:s', strtotime('-1 month',(date('Y-m-d'))));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/TdJGd
function name:  (null)
number of ops:  32
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                                                 'last+Monday'
          4        DO_ICALL                                         $0      
          5        SEND_VAR                                                 $0
          6        DO_ICALL                                         $1      
          7        ECHO                                                     $1
    4     8        ECHO                                                     '+-+'
    5     9        INIT_FCALL                                               'date'
         10        SEND_VAL                                                 'Y-m-d+H%3Ai%3As'
         11        INIT_FCALL                                               'mktime'
         12        SEND_VAL                                                 0
         13        SEND_VAL                                                 0
         14        SEND_VAL                                                 0
         15        DO_ICALL                                         $2      
         16        SEND_VAR                                                 $2
         17        DO_ICALL                                         $3      
         18        ECHO                                                     $3
    6    19        ECHO                                                     '%0A'
    7    20        INIT_FCALL                                               'date'
         21        SEND_VAL                                                 'Y-m-15+H%3Ai%3As'
         22        INIT_FCALL                                               'strtotime'
         23        SEND_VAL                                                 '-1+month'
         24        INIT_FCALL                                               'date'
         25        SEND_VAL                                                 'Y-m-d'
         26        DO_ICALL                                         $4      
         27        SEND_VAR                                                 $4
         28        DO_ICALL                                         $5      
         29        SEND_VAR                                                 $5
         30        DO_ICALL                                                 
         31      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.48 ms | 1007 KiB | 16 Q