3v4l.org

run code in 300+ PHP versions simultaneously
<?php $month = date("G"); $rangeEnd = date("Y-m-d 23:59:59", strtotime("last month")); $rangeStart = date("Y-m-d 00:00:00", strtotime($rangeEnd." -6 days")); echo $month." ".$rangeStart." - ".$rangeEnd; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/W42QQ
function name:  (null)
number of ops:  27
compiled vars:  !0 = $month, !1 = $rangeEnd, !2 = $rangeStart
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'date'
          1        SEND_VAL                                                 'G'
          2        DO_ICALL                                         $3      
          3        ASSIGN                                                   !0, $3
    3     4        INIT_FCALL                                               'date'
          5        SEND_VAL                                                 'Y-m-d+23%3A59%3A59'
          6        INIT_FCALL                                               'strtotime'
          7        SEND_VAL                                                 'last+month'
          8        DO_ICALL                                         $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !1, $6
    4    12        INIT_FCALL                                               'date'
         13        SEND_VAL                                                 'Y-m-d+00%3A00%3A00'
         14        INIT_FCALL                                               'strtotime'
         15        CONCAT                                           ~8      !1, '+-6+days'
         16        SEND_VAL                                                 ~8
         17        DO_ICALL                                         $9      
         18        SEND_VAR                                                 $9
         19        DO_ICALL                                         $10     
         20        ASSIGN                                                   !2, $10
    6    21        CONCAT                                           ~12     !0, '+++++++++++'
         22        CONCAT                                           ~13     ~12, !2
         23        CONCAT                                           ~14     ~13, '+++-++++'
         24        CONCAT                                           ~15     ~14, !1
         25        ECHO                                                     ~15
    8    26      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.34 ms | 1395 KiB | 17 Q